Back to index

nux  3.0.0
Public Member Functions | Static Public Member Functions | Private Attributes
nux::logging::LoggerModule Class Reference
Collaboration diagram for nux::logging::LoggerModule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

std::string const & module () const
bool IsErrorEnabled () const
bool IsWarningEnabled () const
bool IsInfoEnabled () const
bool IsDebugEnabled () const
bool IsTraceEnabled () const
void SetLogLevel (Level level)
Level GetLogLevel () const
Level GetEffectiveLogLevel () const

Static Public Member Functions

 LoggerModule (std::string const &module, LoggerModulePtr const &parent)

Private Attributes

std::string module_
Level level_
LoggerModulePtr parent_
Writerwriter_

Detailed Description

Definition at line 47 of file Logger.cpp.


Constructor & Destructor Documentation

nux::logging::LoggerModule::LoggerModule ( std::string const &  module,
LoggerModulePtr const &  parent 
) [static]

Definition at line 195 of file Logger.cpp.


Member Function Documentation

Definition at line 135 of file Logger.cpp.

{
  if (level_ == NotSpecified && parent_)
    return parent_->GetEffectiveLogLevel();
  else
    return level_;
}

Here is the caller graph for this function:

Definition at line 130 of file Logger.cpp.

{
  return level_;
}

Definition at line 112 of file Logger.cpp.

{
  return GetEffectiveLogLevel() <= Debug;
}

Here is the call graph for this function:

Definition at line 97 of file Logger.cpp.

{
  return GetEffectiveLogLevel() <= Error;
}

Here is the call graph for this function:

Definition at line 107 of file Logger.cpp.

{
  return GetEffectiveLogLevel() <= Info;
}

Here is the call graph for this function:

Definition at line 117 of file Logger.cpp.

{
  return GetEffectiveLogLevel() <= Trace;
}

Here is the call graph for this function:

Definition at line 102 of file Logger.cpp.

{
  return GetEffectiveLogLevel() <= Warning;
}

Here is the call graph for this function:

std::string const & nux::logging::LoggerModule::module ( ) const [inline]

Definition at line 92 of file Logger.cpp.

{
  return module_;
}

Definition at line 122 of file Logger.cpp.

{
  // The root module can't be unspecified.
  if (module_ == "" && level == NotSpecified)
    level = Warning;
  level_ = level;
}

Member Data Documentation

Definition at line 66 of file Logger.cpp.

std::string nux::logging::LoggerModule::module_ [private]

Definition at line 65 of file Logger.cpp.

Definition at line 67 of file Logger.cpp.

Definition at line 69 of file Logger.cpp.


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