nemo_voice_agent.utils.misc
nemo_voice_agent.utils.misc
Module Contents
Classes
Functions
API
Simple file+stdout logger with caller location tracking.
Allow calling the logger instance directly like a function.
Return file:function:line of the caller, skipping frames inside FileLogger.
Log at DEBUG level.
Log at ERROR level.
Log at INFO level.
Write a timestamped line to the log file (if set) and stdout.
Log at WARNING level.
Configure loguru to emit to stderr and a rotating log file.
Roll an existing log file aside (or delete it), then call setup_logging.
If create_new_log is True and the file exists, it is either removed
(overwrite_existing=True) or renamed with a timestamp suffix. Used by
bot server scripts that want a fresh log on every run.