Skip to content

Logger: setLevel per output (making a logfile that contains debug level logs possible) #2

@JBarmentlo

Description

@JBarmentlo

For now we use logger.setLevel() to handle the level of the logger. The issue is that this handles every 'output' of the logger (both console and file) we would like this to change to make a debug log file possible (i.e. add a file output that stays at debug level regardless of the level of logs shown on the console)

The basic idea of how this could e achieved is by editing the levelFilter associated to the output handlers and leaving the logger level at DEBUG at all times.

This can be achieved by:

  • Wrapping the loggers produced by the factory in a subclass
  • overriding the setLevel method

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions