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 966 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 972 of file UT_PackageUtils.h.

Constructor & Destructor Documentation

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

Definition at line 980 of file UT_PackageUtils.h.

Member Function Documentation

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

Definition at line 1162 of file UT_PackageUtils.h.

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

Definition at line 1065 of file UT_PackageUtils.h.

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

Definition at line 1075 of file UT_PackageUtils.h.

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

Definition at line 997 of file UT_PackageUtils.h.

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

Definition at line 1007 of file UT_PackageUtils.h.

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

Definition at line 1115 of file UT_PackageUtils.h.

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

Definition at line 1157 of file UT_PackageUtils.h.

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

Definition at line 1016 of file UT_PackageUtils.h.

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

Definition at line 1026 of file UT_PackageUtils.h.

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

Definition at line 1125 of file UT_PackageUtils.h.

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

Definition at line 1035 of file UT_PackageUtils.h.

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

Definition at line 1045 of file UT_PackageUtils.h.

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

Definition at line 987 of file UT_PackageUtils.h.

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

Definition at line 1139 of file UT_PackageUtils.h.

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

Definition at line 1081 of file UT_PackageUtils.h.

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

Definition at line 1096 of file UT_PackageUtils.h.

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

Definition at line 992 of file UT_PackageUtils.h.

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

Definition at line 1054 of file UT_PackageUtils.h.

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

Definition at line 1060 of file UT_PackageUtils.h.

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

Definition at line 1120 of file UT_PackageUtils.h.


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