#include <log.h>
◆ Action
◆ Color
◆ Type
Each type represents different logging style. For each type is provided a logger by calling Log::get function
Enumerator |
---|
Info | |
Debug | |
Error | |
Undefined | |
◆ debug()
Logger retdec::utils::io::Log::debug |
( |
| ) |
|
|
static |
Shortcut for Logger(Log::get(Log::Type::Debug)).
Creates temporary copy of Debug logger. This is particularly useful when changing color of the output. On destruction color is changed to default.
◆ error()
Logger retdec::utils::io::Log::error |
( |
| ) |
|
|
static |
Shortcut for Logger(Log::get(Log::Type::Error)).
Creates temporary copy of Error logger. This is particularly useful when changing color of the output. On destruction color is changed to default.
◆ get()
Logger & retdec::utils::io::Log::get |
( |
const Type & |
logType | ) |
|
|
static |
Returns corresponding initialized logger for logType provided as parameter. At the beginning all the logger types are initialized to default logger.
For debug/info:
For error:
◆ info()
Logger retdec::utils::io::Log::info |
( |
| ) |
|
|
static |
Shortcut for Logger(Log::get(Log::Type::Info)).
Creates temporary copy of Info logger. This is particularly useful when changing color of the output. On destruction color is changed to default.
◆ phase()
void retdec::utils::io::Log::phase |
( |
const std::string & |
phaseId, |
|
|
const Log::Action & |
action = Log::Action::Phase |
|
) |
| |
|
static |
Shortcut for Log::info() << action << phaseId << Log::Action::ElapsedTime << std::endl.
◆ set()
void retdec::utils::io::Log::set |
( |
const Type & |
logType, |
|
|
Logger::Ptr && |
logger |
|
) |
| |
|
static |
Sets appropriate logger based on logType value.
◆ defaultLogger
Logger retdec::utils::io::Log::defaultLogger |
|
staticprivate |
Fallback logger. In case of bad initialization of the writers this logger is used as fallback to log (calling set with nullptr).
◆ ElapsedTime
const Log::Action retdec::utils::io::Log::ElapsedTime = Log::Action::ElapsedTime |
|
static |
Representation of ElapsedTime Action that can be inserted into logger. Shortcut for Log::Action::ElapsedTime
◆ Error
const Log::Action retdec::utils::io::Log::Error = Log::Action::Error |
|
static |
Representation of Error Action that can be inserted into logger. Shortcut for Log::Action::Error
◆ Phase
const Log::Action retdec::utils::io::Log::Phase = Log::Action::Phase |
|
static |
Representation of Phase Action that can be inserted into logger. Shortcut for Log::Action::Phase
◆ SubPhase
const Log::Action retdec::utils::io::Log::SubPhase = Log::Action::SubPhase |
|
static |
Representation of SubPhase Action that can be inserted into logger. Shortcut for Log::Action::SubPhase
◆ SubSubPhase
const Log::Action retdec::utils::io::Log::SubSubPhase = Log::Action::SubSubPhase |
|
static |
Representation of SubSubPhase Action that can be inserted into logger. Shortcut for Log::Action::SubSubPhase
◆ Warning
const Log::Action retdec::utils::io::Log::Warning = Log::Action::Warning |
|
static |
Representation of Warning Action that can be inserted into logger. Shortcut for Log::Action::Warning
◆ writers
Initial value:= {
nullptr,
nullptr,
}
std::unique_ptr< Logger > Ptr
Definition: logger.h:24
Structure containing initialized/default loggers.
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/utils/io/log.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/utils/io/log.cpp