feisty meow concerns codebase  2.140
loggers Namespace Reference

A logger that sends to the console screen using the standard output device. More...

Classes

class  combo_logger
 combines a file_logger with a console logger, behaving like the 'tee' command. More...
 
class  console_logger
 
class  critical_events
 Provides a means of logging events for runtime problems. More...
 
class  eol_aware
 Provides an abstract base for logging mechanisms. More...
 
class  file_logger
 
class  filter_set
 A simple object that wraps a templated set of ints. More...
 
class  program_wide_logger
 A class that provides logging facilities vertically to all of hoople. More...
 
class  null_logger
 a trash can for logging; throws away all entries. More...
 
class  standard_log_base
 A base class for a very usable logger with a filter_set and eol awareness. More...
 

Enumerations

enum  logging_filters {
  FILT_FATAL = basis::ALWAYS_PRINT , FILT_ERROR = basis::ALWAYS_PRINT , DEFINE_FILTER =(FILT_WARNING, 1, "Important or unusual condition occurred in the runtime.") , DEFINE_FILTER =(FILT_WARNING, 1, "Important or unusual condition occurred in the runtime.") ,
  DEFINE_FILTER =(FILT_WARNING, 1, "Important or unusual condition occurred in the runtime.") , DEFINE_FILTER =(FILT_WARNING, 1, "Important or unusual condition occurred in the runtime.") , DEFINE_FILTER =(FILT_WARNING, 1, "Important or unusual condition occurred in the runtime.")
}
 

Functions

astring default_critical_location ()
 
int static_chaos ()
 

Variables

const int REDUCE_FACTOR = 5
 
const int MAXIMUM_BUFFER_SIZE = 140000
 

Detailed Description

A logger that sends to the console screen using the standard output device.

Enables the printing of information to a log file.

The object can optionally be used to log to the standard error device instead.

The information can be conditionally printed using the filter support. The log file will automatically be truncated when it passes the size limit.

Enumeration Type Documentation

◆ logging_filters

Enumerator
FILT_FATAL 
FILT_ERROR 
DEFINE_FILTER 
DEFINE_FILTER 
DEFINE_FILTER 
DEFINE_FILTER 
DEFINE_FILTER 

Definition at line 23 of file logging_filters.h.

Function Documentation

◆ default_critical_location()

astring loggers::default_critical_location ( )

◆ static_chaos()

int loggers::static_chaos ( )

Definition at line 55 of file file_logger.cpp.

References mathematics::chaos::inclusive().

Referenced by loggers::file_logger::truncate().

Variable Documentation

◆ MAXIMUM_BUFFER_SIZE

const int loggers::MAXIMUM_BUFFER_SIZE = 140000

Definition at line 51 of file file_logger.cpp.

Referenced by loggers::file_logger::truncate().

◆ REDUCE_FACTOR

const int loggers::REDUCE_FACTOR = 5

Definition at line 46 of file file_logger.cpp.