TwP/logging — Issue #26: Cannot enable trace on root logger
Author: kevinjalbert
Created: 2012-02-09 18:08:52+00:00
State: open

I am trying to make it so I can view the file.method.line_number of the log events. I realize that I need to enable the trace flag for these events to have the necessary information. I cannot seem to make it work on the root logger. Is there something I am missing? Or can I only do this on a new instance of a logger.

```
Logging.logger.root.trace = true
Logging.logger.root.add_appenders(
Logging.appenders.stdout(
:layout => Logging.layouts.pattern(:pattern => '[%d] %-5l %c: %m(%F %M %L)\n'),
:level => :info
)
)
```