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 ()
 
 ~Logger ()=default
 
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 toStream (std::ostream &os) const
 
UT_StringHolder toString () 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 757 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 763 of file UT_PackageUtils.h.

Constructor & Destructor Documentation

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

Definition at line 771 of file UT_PackageUtils.h.

UT_Package::utils::Logger::~Logger ( )
default

Member Function Documentation

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

Definition at line 893 of file UT_PackageUtils.h.

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

Definition at line 825 of file UT_PackageUtils.h.

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

Definition at line 779 of file UT_PackageUtils.h.

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

Definition at line 786 of file UT_PackageUtils.h.

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

Definition at line 888 of file UT_PackageUtils.h.

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

Definition at line 792 of file UT_PackageUtils.h.

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

Definition at line 798 of file UT_PackageUtils.h.

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

Definition at line 856 of file UT_PackageUtils.h.

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

Definition at line 803 of file UT_PackageUtils.h.

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

Definition at line 809 of file UT_PackageUtils.h.

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

Definition at line 870 of file UT_PackageUtils.h.

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

Definition at line 832 of file UT_PackageUtils.h.

UT_StringHolder UT_Package::utils::Logger::toString ( ) const
inline

Definition at line 847 of file UT_PackageUtils.h.

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

Definition at line 814 of file UT_PackageUtils.h.

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

Definition at line 820 of file UT_PackageUtils.h.


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