fortplot_logging Module

Simple logging facility for fortplot library Allows control over console output verbosity and warning suppression

Supports environment variable-based warning suppression: - FORTPLOT_SUPPRESS_WARNINGS: Manual warning suppression control - Automatic CI detection: GITHUB_ACTIONS, CI, CONTINUOUS_INTEGRATION - FORTPLOT_FORCE_WARNINGS: Force warnings even in CI environments


Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: LOG_LEVEL_SILENT = 0
integer, public, parameter :: LOG_LEVEL_ERROR = 1
integer, public, parameter :: LOG_LEVEL_WARNING = 2
integer, public, parameter :: LOG_LEVEL_INFO = 3
integer, public, parameter :: LOG_LEVEL_DEBUG = 4

Functions

public function is_warnings_suppressed()

Check if warnings are currently suppressed

Arguments

None

Return Value logical


Subroutines

public subroutine set_log_level(level)

Set the global logging level

Read more…

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: level

public subroutine log_info(message)

Log an informational message

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: message

public subroutine log_warning(message)

Log a warning message with suppression support Respects FORTPLOT_SUPPRESS_WARNINGS and CI environment detection

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: message

public subroutine log_error(message)

Log an error message

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: message

public subroutine log_debug(message)

Log a debug message

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: message

public subroutine initialize_warning_suppression()

Initialize warning suppression based on environment variables Supports manual control and automatic CI detection

Arguments

None