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 const & errors () const
 
UT_StringArray const & warnings () 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 989 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 995 of file UT_PackageUtils.h.

Constructor & Destructor Documentation

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

Definition at line 1003 of file UT_PackageUtils.h.

Member Function Documentation

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

Definition at line 1185 of file UT_PackageUtils.h.

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

Definition at line 1088 of file UT_PackageUtils.h.

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

Definition at line 1098 of file UT_PackageUtils.h.

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

Definition at line 1020 of file UT_PackageUtils.h.

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

Definition at line 1030 of file UT_PackageUtils.h.

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

Definition at line 1138 of file UT_PackageUtils.h.

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

Definition at line 1180 of file UT_PackageUtils.h.

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

Definition at line 1039 of file UT_PackageUtils.h.

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

Definition at line 1049 of file UT_PackageUtils.h.

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

Definition at line 1148 of file UT_PackageUtils.h.

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

Definition at line 1058 of file UT_PackageUtils.h.

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

Definition at line 1068 of file UT_PackageUtils.h.

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

Definition at line 1010 of file UT_PackageUtils.h.

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

Definition at line 1162 of file UT_PackageUtils.h.

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

Definition at line 1104 of file UT_PackageUtils.h.

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

Definition at line 1119 of file UT_PackageUtils.h.

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

Definition at line 1015 of file UT_PackageUtils.h.

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

Definition at line 1077 of file UT_PackageUtils.h.

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

Definition at line 1083 of file UT_PackageUtils.h.

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

Definition at line 1143 of file UT_PackageUtils.h.


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