watch_log Module

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.


Uses

  • module~~watch_log~~UsesGraph module~watch_log watch_log face face module~watch_log->face iso_fortran_env iso_fortran_env module~watch_log->iso_fortran_env module~watch_types watch_types module~watch_log->module~watch_types module~watch_types->iso_fortran_env fpm_command_line fpm_command_line module~watch_types->fpm_command_line fpm_strings fpm_strings module~watch_types->fpm_strings

Used by

  • module~~watch_log~~UsedByGraph module~watch_log watch_log module~watch_engine watch_engine module~watch_engine->module~watch_log module~watch_feature_factory watch_feature_factory module~watch_engine->module~watch_feature_factory module~watch_fpm_graph watch_fpm_graph module~watch_engine->module~watch_fpm_graph module~watch_feat_stats watch_feat_stats module~watch_feat_stats->module~watch_log module~watch_feature_factory->module~watch_log module~watch_feature_factory->module~watch_feat_stats module~watch_fpm_graph->module~watch_log

Subroutines

public subroutine log_debug(w, msg)

Log a debug message (prints only when debug is enabled).

Arguments

Type IntentOptional Attributes Name
type(watch_opts_t), intent(in) :: w
character(len=*), intent(in) :: msg

public subroutine log_err(msg)

Log an error message (always prints).

Arguments

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

public subroutine log_info(w, msg)

Log an informational message.

Arguments

Type IntentOptional Attributes Name
type(watch_opts_t), intent(in) :: w
character(len=*), intent(in) :: msg

public subroutine log_warn(w, msg)

Log a warning message.

Arguments

Type IntentOptional Attributes Name
type(watch_opts_t), intent(in) :: w
character(len=*), intent(in) :: msg