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
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 |
Check if warnings are currently suppressed
Set the global logging level
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | level |
Log an informational message
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message |
Log a warning message with suppression support Respects FORTPLOT_SUPPRESS_WARNINGS and CI environment detection
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message |
Log an error message
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message |
Log a debug message
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message |
Initialize warning suppression based on environment variables Supports manual control and automatic CI detection