Skip to content

loghandler log level issue #890

@sjoerss

Description

@sjoerss

Hello!

I am testing VUnit for some weeks and I would like to say thank you for this great framework to all contributors.

In my test bench I create a logfile to save logger messages additionally to the display_handler output.
If I understand the documentation right, all log handlers show these log levels by default:
info, warning, error, failure
and the others are not shown be default.

When I create a new file handler for my log file with

impure function new_log_handler(file_name : string; format : log_format_t := verbose; use_color : boolean := false) return log_handler_t;

and then
set_log_handlers(get_logger("my_file_logger"), (display_handler, filehandler);

no log level is shown by default.

If I use the command
show(get_logger("my_file_logger"), my_file_handler, info);
then ALL log levels are enabled, not just info.

When I use
hide_all(get_logger("my_file_logger"), my_file_handler);
and followed for example by
show(get_logger("my_file_logger"), my_file_handler, info);
then the desired log level is enabled only.

Is this behavior intended?
Maybe I do something wrong?

regards,
Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions