Open ibtaylor opened 6 years ago
adding
__setup_trace_handler(tracer)
before
https://github.com/florath/rmtoo/blob/c015be2573b9df10897b6c7b5b3f4fdeba43e301/rmtoo/lib/logging/__init__.py#L146
seems to do what i want aside from two initial logs in /tmp/rmtoo.log
2018-05-15 14:02:58,411;rmtoo-trace;DEBUG;__init__;init_tracer;121;rmtoo tracer system enabled.
2018-05-15 14:02:58,411;rmtoo-trace;DEBUG;__init__;__init_logger_object;95;rmtoo init logger.
does not seem to respect filename set in config
global.logging.tracer.filename
maybe because
configure_logging
does not callinit_tracer
https://github.com/florath/rmtoo/blob/c015be2573b9df10897b6c7b5b3f4fdeba43e301/rmtoo/lib/logging/__init__.py#L146 and so it uses the default settings inLOGGING_CONFIG
when the tracer is created at the bottom of https://github.com/florath/rmtoo/blob/c015be2573b9df10897b6c7b5b3f4fdeba43e301/rmtoo/lib/logging/__init__.py#L154