HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Package::utils::Logger Class Reference

#include <UT_PackageUtils.h>

Public Types

enum  Flags : unsigned { Flags::all, Flags::info, Flags::warning, Flags::error }
 
using EntryMap = UT_StringMap< UT_StringHolder >
 
using EntryArray = UT_StringArray
 

Public Member Functions

 Logger ()
 
void setAsVerbose (bool flag)
 
bool verbose () const
 
void error (char const *msg)
 
template<typename... Args>
void error (char const *msg, Args &&...args)
 
void info (char const *msg)
 
template<typename... Args>
void info (char const *msg, Args &&...args)
 
void message (char const *msg)
 
template<typename... Args>
void message (char const *msg, Args &&...args)
 
void warning (char const *msg)
 
template<typename... Args>
void warning (char const *msg, Args &&...args)
 
void clear ()
 
void clearErrors ()
 
void toStream (std::ostream &os) const
 
UT_StringHolder toString (bool header=true) const
 
UT_StringArray consterrors () const
 
UT_StringArray constwarnings () const
 
void log (char const *title, Flags flags=Flags::all) const
 
void start (char const *entry)
 
bool hasErrors () const
 
void append (Logger const &logger)
 

Detailed Description

Definition at line 996 of file UT_PackageUtils.h.

Member Typedef Documentation

Member Enumeration Documentation

enum UT_Package::utils::Logger::Flags : unsigned
strong
Enumerator
all 
info 
warning 
error 

Definition at line 1002 of file UT_PackageUtils.h.

Constructor & Destructor Documentation

UT_Package::utils::Logger::Logger ( )
inline

Definition at line 1010 of file UT_PackageUtils.h.

Member Function Documentation

void UT_Package::utils::Logger::append ( Logger const logger)
inline

Definition at line 1192 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::clear ( void  )
inline

Definition at line 1095 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::clearErrors ( )
inline

Definition at line 1105 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::error ( char const msg)
inline

Definition at line 1027 of file UT_PackageUtils.h.

template<typename... Args>
void UT_Package::utils::Logger::error ( char const msg,
Args &&...  args 
)
inline

Definition at line 1037 of file UT_PackageUtils.h.

UT_StringArray const& UT_Package::utils::Logger::errors ( ) const
inline

Definition at line 1145 of file UT_PackageUtils.h.

bool UT_Package::utils::Logger::hasErrors ( ) const
inline

Definition at line 1187 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::info ( char const msg)
inline

Definition at line 1046 of file UT_PackageUtils.h.

template<typename... Args>
void UT_Package::utils::Logger::info ( char const msg,
Args &&...  args 
)
inline

Definition at line 1056 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::log ( char const title,
Flags  flags = Flags::all 
) const
inline

Definition at line 1155 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::message ( char const msg)
inline

Definition at line 1065 of file UT_PackageUtils.h.

template<typename... Args>
void UT_Package::utils::Logger::message ( char const msg,
Args &&...  args 
)
inline

Definition at line 1075 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::setAsVerbose ( bool  flag)
inline

Definition at line 1017 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::start ( char const entry)
inline

Definition at line 1169 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::toStream ( std::ostream &  os) const
inline

Definition at line 1111 of file UT_PackageUtils.h.

UT_StringHolder UT_Package::utils::Logger::toString ( bool  header = true) const
inline

Definition at line 1126 of file UT_PackageUtils.h.

bool UT_Package::utils::Logger::verbose ( ) const
inline

Definition at line 1022 of file UT_PackageUtils.h.

void UT_Package::utils::Logger::warning ( char const msg)
inline

Definition at line 1084 of file UT_PackageUtils.h.

template<typename... Args>
void UT_Package::utils::Logger::warning ( char const msg,
Args &&...  args 
)
inline

Definition at line 1090 of file UT_PackageUtils.h.

UT_StringArray const& UT_Package::utils::Logger::warnings ( ) const
inline

Definition at line 1150 of file UT_PackageUtils.h.


The documentation for this class was generated from the following file: