logger.h File Reference

#include <iostream>
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SetLevel
class  Logger< _charT, _Traits >
class  Logger< _charT, _Traits >::LoggerState

Defines

#define define_logger_level_manipulator(LEVEL)

Functions

_SetLevel setlevel (std::string __l)
 Manipulator for level.
 define_logger_level_manipulator (EMERG)
 define_logger_level_manipulator (FATAL)
 define_logger_level_manipulator (ALERT)
 define_logger_level_manipulator (CRIT)
 define_logger_level_manipulator (ERROR)
 define_logger_level_manipulator (WARN)
 define_logger_level_manipulator (NOTICE)
 define_logger_level_manipulator (INFO)
 define_logger_level_manipulator (DEBUG)
 define_logger_level_manipulator (ALL)
template<typename _charT , typename _Traits >
const Logger< _charT, _Traits > & endl (const Logger< _charT, _Traits > &lgr)

Define Documentation

#define define_logger_level_manipulator ( LEVEL   ) 
Value:
template <typename _charT, typename _Traits>            \
    inline const Logger<_charT, _Traits>&                       \
    LEVEL (const Logger<_charT, _Traits>& lgr)                  \
    {                                                           \
        lgr.setCurrentLevel(Logger<_charT, _Traits>::LEVEL);    \
        return lgr;                                             \
    }

Definition at line 255 of file logger.h.


Function Documentation

define_logger_level_manipulator ( ALL   ) 
define_logger_level_manipulator ( DEBUG   ) 
define_logger_level_manipulator ( INFO   ) 
define_logger_level_manipulator ( NOTICE   ) 
define_logger_level_manipulator ( WARN   ) 
define_logger_level_manipulator ( ERROR   ) 
define_logger_level_manipulator ( CRIT   ) 
define_logger_level_manipulator ( ALERT   ) 
define_logger_level_manipulator ( FATAL   ) 
define_logger_level_manipulator ( EMERG   ) 
template<typename _charT , typename _Traits >
const Logger<_charT, _Traits>& endl ( const Logger< _charT, _Traits > &  lgr  )  [inline]

Definition at line 278 of file logger.h.

References Logger< _charT, _Traits >::endl().

Referenced by ARPAPredictor::addBigram(), PredictorRegistry::addPredictor(), ARPAPredictor::addTrigram(), ARPAPredictor::addUnigram(), AbbreviationExpansionPredictor::cacheAbbreviationsExpansions(), SmoothedNgramPredictor::check_learn_consistency(), Selector::clearSuggestedWords(), ARPAPredictor::computeTrigramBackoff(), SmoothedNgramPredictor::count(), ARPAPredictor::createARPATable(), disclaimer(), Dispatcher< ARPAPredictor >::dispatch(), Logger< char >::endl(), SqliteDatabaseConnector::executeSql(), DatabaseConnector::extractFirstInteger(), Simulator::find(), ProfileManager::flush_cached_log_messages(), DatabaseConnector::getNgramCount(), DatabaseConnector::getUnigramCountsSum(), DatabaseConnector::incrementNgramCount(), DejavuPredictor::init_memory_trigger(), DejavuPredictor::init_rolling_window(), SmoothedNgramPredictor::learn(), DummyPredictor::learn(), DictionaryPredictor::learn(), DejavuPredictor::learn(), ARPAPredictor::learn(), ContextTracker::learn(), ARPAPredictor::loadVocabulary(), main(), ForwardTokenizer::nextToken(), SqliteDatabaseConnector::openDatabase(), operator<<(), SmoothedNgramPredictor::predict(), RecencyPredictor::predict(), DictionaryPredictor::predict(), DejavuPredictor::predict(), ARPAPredictor::predict(), AbbreviationExpansionPredictor::predict(), PredictorActivator::predict(), Configuration::print(), print_prediction(), print_usage(), print_version(), printUsage(), printVersion(), ProgressBar< char >::ProgressBar(), PredictorRegistry::removePredictors(), Selector::repetitionFilter(), Simulator::results(), ProfileManager::save_profile(), Selector::select(), AbbreviationExpansionPredictor::set_abbreviations(), ARPAPredictor::set_arpa_filename(), ProfileManager::set_autopersist(), RecencyPredictor::set_cutoff_threshold(), SmoothedNgramPredictor::set_dbfilename(), SmoothedNgramPredictor::set_deltas(), DictionaryPredictor::set_dictionary(), Selector::set_greedy_suggestion_threshold(), RecencyPredictor::set_lambda(), SmoothedNgramPredictor::set_learn(), Predictor::set_logger(), Selector::set_logger(), ContextTracker::set_logger(), ContextTracker::set_lowercase_mode(), DejavuPredictor::set_memory(), RecencyPredictor::set_n_0(), DictionaryPredictor::set_probability(), Selector::set_repeat_suggestions(), ContextTracker::set_sliding_window_size(), Selector::set_suggestions(), ARPAPredictor::set_timeout(), DejavuPredictor::set_trigger(), ARPAPredictor::set_vocab_filename(), PredictorActivator::setCombinationPolicy(), PredictorRegistry::setLogger(), PredictorActivator::setLogger(), PredictorActivator::setMaxPartialPredictionSize(), PredictorRegistry::setPredictors(), PredictorActivator::setPredictTime(), Selector::thresholdFilter(), Suggestion::toString(), SmoothedNgramPredictor::update(), RecencyPredictor::update(), DictionaryPredictor::update(), DejavuPredictor::update(), ARPAPredictor::update(), AbbreviationExpansionPredictor::update(), Selector::update(), PredictorRegistry::update(), PredictorActivator::update(), ContextTracker::update(), DejavuPredictor::update_rolling_window(), Selector::updateSuggestedWords(), usage(), version(), and ProgressBar< char >::~ProgressBar().

Here is the call graph for this function:

_SetLevel setlevel ( std::string  __l  )  [inline]

Manipulator for level.

Parameters:
@__l The new logger level.

Sent to a logger object, this manipulator calls setLevel(c) for that object.

Definition at line 46 of file logger.h.

References _SetLevel::_level.

Referenced by ProfileManager::refresh_config(), Predictor::set_logger(), Selector::set_logger(), ContextTracker::set_logger(), PredictorRegistry::setLogger(), and PredictorActivator::setLogger().

Here is the caller graph for this function:


Generated on 9 Feb 2015 for presage by  doxygen 1.6.1