Class Logger

Class Documentation

class Logger

Public Types

enum Severity

Values:

enumerator LOG_DEBUG
enumerator LOG_NOTICE
enumerator LOG_WARNING
enumerator LOG_ERROR
enum Format

Values:

enumerator FMT_PLAIN
enumerator FMT_JSON

Public Static Functions

void SetProduct(boost::optional<IfcUtil::IfcBaseClass*> product)
void SetOutput(std::wostream *l1, std::wostream *l2)

Determines to what stream respectively progress and errors are logged.

void SetOutput(std::ostream *l1, std::ostream *l2)

Determines to what stream respectively progress and errors are logged.

void Verbosity(Severity v)

Determines the types of log messages to get logged.

Severity Verbosity()
Severity MaxSeverity()
void OutputFormat(Format f)

Determines output format: plain text or sequence of JSON objects.

Format OutputFormat()
void Message(Severity type, const std::string &message, const IfcUtil::IfcBaseClass *instance = 0)

Log a message to the output stream.

void Message(Severity type, const std::exception &message, const IfcUtil::IfcBaseClass *instance = 0)
void Notice(const std::string &message, const IfcUtil::IfcBaseClass *instance = 0)
void Warning(const std::string &message, const IfcUtil::IfcBaseClass *instance = 0)
void Error(const std::string &message, const IfcUtil::IfcBaseClass *instance = 0)
void Notice(const std::exception &exception, const IfcUtil::IfcBaseClass *instance = 0)
void Warning(const std::exception &exception, const IfcUtil::IfcBaseClass *instance = 0)
void Error(const std::exception &exception, const IfcUtil::IfcBaseClass *instance = 0)
void Status(const std::string &message, bool new_line = true)
void ProgressBar(int progress)
std::string GetLog()