ModErn Text Analysis
META Enumerates Textual Applications
Classes | Namespaces | Macros | Functions
logger.h File Reference
#include <chrono>
#include <functional>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <vector>

Go to the source code of this file.

Classes

class  meta::logging::logger
 logger: Main logging class. More...
 
class  meta::logging::logger::log_line
 log_line: Represents a single message to be written to all sinks. More...
 
class  meta::logging::logger::sink
 sink: A wrapper for a stream that a logger should write to. More...
 

Namespaces

 meta
 The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
 
 meta::logging
 Namespace which contains all of the logging interface classes.
 

Macros

#define LOG(sev)
 
#define ENDLG   logging::logger::log_line::endlg
 
#define LOG_FUNCTION_START()   LOG(trace) << "entering " << __func__ << "()" << ENDLG
 

Functions

logger & meta::logging::get_logger ()
 
void meta::logging::add_sink (const logger::sink &s)
 Adds a sink to a static instance of a logger. More...
 
void meta::logging::add_sink (logger::sink &&s)
 Adds a sink to a static instance of a logger. More...
 
void meta::logging::set_cerr_logging (logging::logger::severity_level sev=logging::logger::severity_level::trace)
 Sets up default logging to cerr. More...
 

Detailed Description

Author
Chase Geigle Definition of a simplistic logging interface.

All files in META are dual-licensed under the MIT and NCSA licenses. For more details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the project.

Macro Definition Documentation

#define LOG (   sev)
Value:
logging::logger::log_line(logging::get_logger(), \
logging::logger::severity_level::sev, __LINE__, \
__FILE__)
logger & get_logger()
Definition: logger.h:379