Lightweight structured logging for console output.
Provides a consistent key | message style format with optional color.
Logging respects w%verbosity:
- < 0: suppress info/warn output
- debug messages require w%debug = .true.
Log a debug message (prints only when debug is enabled).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(watch_opts_t), | intent(in) | :: | w | |||
| character(len=*), | intent(in) | :: | msg |
Log an error message (always prints).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | msg |
Log an informational message.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(watch_opts_t), | intent(in) | :: | w | |||
| character(len=*), | intent(in) | :: | msg |
Log a warning message.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(watch_opts_t), | intent(in) | :: | w | |||
| character(len=*), | intent(in) | :: | msg |