#include <trace_config.h>
The TraceLogConfig is used to perform a one-time config of a TraceLog for anything that must be set only once e.g. the config to automatically use on startup.
The TraceLogConfig can either be passed in when the TraceLog is created, or by using the TraceLog::configure() method prior to the first time the TraceLog is started.
phosphor::TraceLogConfig::TraceLogConfig |
( |
| ) |
|
|
inline |
Clears the startup trace config that has previously been stored so that tracing on startup can be disabled.
- Returns
- A reference to this config
Factory method which sets up a TraceLogConfig from the environment variables
Note: This is a member function because MSVC2012 can't do copy elision properly.
- Parameters
-
TraceConfig * phosphor::TraceLogConfig::getStartupTrace |
( |
| ) |
const |
- Returns
- a pointer to the TraceConfig (Because it is potentially null, i.e. tracing should not start)
Sets the TraceLog to start tracing immediately on construction with a particular config
- Parameters
-
_startup_trace | A reference to a preexisting config that will be copied for internal storage. |
- Returns
- A reference to this config
The documentation for this class was generated from the following files: