Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
VW::io::logger Class Reference

#include <logger.h>

Public Member Functions

 logger (const logger &)=default
 
loggeroperator= (const logger &)=default
 
 logger (logger &&) noexcept=default
 
loggeroperator= (logger &&) noexcept=default
 
template<typename FormatString , typename... Args>
void err_info (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void err_warn (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void err_error (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void err_critical (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void out_info (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void out_warn (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void out_error (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void out_critical (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void info (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void warn (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void error (const FormatString &fmt, Args &&... args)
 
template<typename FormatString , typename... Args>
void critical (const FormatString &fmt, Args &&... args)
 
void set_level (log_level lvl)
 
void set_max_output (size_t max)
 
void set_location (output_location location)
 
size_t get_log_count () const
 
void log_summary ()
 

Friends

logger create_default_logger ()
 
logger create_null_logger ()
 
logger create_custom_sink_logger (void *context, logger_output_func_t func)
 
logger create_custom_sink_logger_legacy (void *context, logger_legacy_output_func_t func)
 

Constructor & Destructor Documentation

◆ logger() [1/2]

VW::io::logger::logger ( const logger )
default

◆ logger() [2/2]

VW::io::logger::logger ( logger &&  )
defaultnoexcept

Member Function Documentation

◆ critical()

template<typename FormatString , typename... Args>
void VW::io::logger::critical ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ err_critical()

template<typename FormatString , typename... Args>
void VW::io::logger::err_critical ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ err_error()

template<typename FormatString , typename... Args>
void VW::io::logger::err_error ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ err_info()

template<typename FormatString , typename... Args>
void VW::io::logger::err_info ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ err_warn()

template<typename FormatString , typename... Args>
void VW::io::logger::err_warn ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ error()

template<typename FormatString , typename... Args>
void VW::io::logger::error ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ get_log_count()

size_t VW::io::logger::get_log_count ( ) const

◆ info()

template<typename FormatString , typename... Args>
void VW::io::logger::info ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ log_summary()

void VW::io::logger::log_summary ( )

◆ operator=() [1/2]

logger & VW::io::logger::operator= ( const logger )
default

◆ operator=() [2/2]

logger & VW::io::logger::operator= ( logger &&  )
defaultnoexcept

◆ out_critical()

template<typename FormatString , typename... Args>
void VW::io::logger::out_critical ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ out_error()

template<typename FormatString , typename... Args>
void VW::io::logger::out_error ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ out_info()

template<typename FormatString , typename... Args>
void VW::io::logger::out_info ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ out_warn()

template<typename FormatString , typename... Args>
void VW::io::logger::out_warn ( const FormatString &  fmt,
Args &&...  args 
)
inline

◆ set_level()

void VW::io::logger::set_level ( log_level  lvl)

◆ set_location()

void VW::io::logger::set_location ( output_location  location)

◆ set_max_output()

void VW::io::logger::set_max_output ( size_t  max)

◆ warn()

template<typename FormatString , typename... Args>
void VW::io::logger::warn ( const FormatString &  fmt,
Args &&...  args 
)
inline

Friends And Related Function Documentation

◆ create_custom_sink_logger

logger create_custom_sink_logger ( void *  context,
logger_output_func_t  func 
)
friend

◆ create_custom_sink_logger_legacy

logger create_custom_sink_logger_legacy ( void *  context,
logger_legacy_output_func_t  func 
)
friend

◆ create_default_logger

logger create_default_logger ( )
friend

◆ create_null_logger

logger create_null_logger ( )
friend

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