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

Go to the source code of this file.


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...


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


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


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

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 and LICENSE.ncsa in the root of the project.

Macro Definition Documentation


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