Skip to content

Prevent user from modify the DebuGymLogger's level #300

@MarcCote

Description

@MarcCote

Right now, if a user does the following

import logging

logger = DebugGymLogger("debug-gym", log_dir="/tmp/logs/")
logger.setLevel(logging.INFO)

all the debugging information won't be saved in the log file (i.e., "/tmp/logs/debug_gym.log").

Suggestion, overwrite the setLevel method to only change the level of the rich_handler responsible to print logging information to stdout.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions