Sirikata
Classes | Namespaces | Defines | Typedefs | Functions | Variables
libcore/src/util/Logging.cpp File Reference
#include <sirikata/core/util/Standard.hh>
#include <sirikata/core/options/Options.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/thread/shared_mutex.hpp>
#include <boost/thread/locks.hpp>
Include dependency graph for Logging.cpp:

Classes

class  Sirikata::Logging::LogLevelParser
class  Sirikata::Logging::LogLevelMapParser

Namespaces

namespace  Sirikata
 

Note: All the classes provided in this file are thin wrappers around the corresponding classes in ASIO.


namespace  Sirikata::Logging

Defines

#define fileno_platform   fileno
#define dup2_platform   dup2
#define LOGGING_MAX_MODULE_LENGTH   10

Typedefs

typedef
std::tr1::unordered_map< const
char *, String > 
Sirikata::Logging::CapsNameMap
typedef boost::shared_mutex Sirikata::Logging::SharedMutex
typedef boost::upgrade_lock
< SharedMutex > 
Sirikata::Logging::UpgradeLock
typedef
boost::upgrade_to_unique_lock
< SharedMutex > 
Sirikata::Logging::UpgradedLock

Functions

SIRIKATA_FUNCTION_EXPORT void Sirikata::Logging::setOutputFP (FILE *fp)
 Set the output file pointer for *all* output, not just SILOG output.
SIRIKATA_FUNCTION_EXPORT void Sirikata::Logging::setLogStream (std::ostream *logfs)
 Set the output stream for SILOG output, e.g.
SIRIKATA_FUNCTION_EXPORT void Sirikata::Logging::finishLog ()
 Allow logging to finish, e.g.
SIRIKATA_FUNCTION_EXPORT const
String & 
Sirikata::Logging::LogModuleString (const char *base)
SIRIKATA_FUNCTION_EXPORT const
char * 
Sirikata::Logging::LogLevelString (LOGGING_LEVEL lvl, const char *lvl_as_string)

Variables

void * Sirikata_Logging_OptionValue_defaultLevel
void * Sirikata_Logging_OptionValue_atLeastLevel
void * Sirikata_Logging_OptionValue_moduleLevel
SharedMutex Sirikata::Logging::LogModuleStringsMutex
InitializeGlobalOptions Sirikata::Logging::o ("", Sirikata_Logging_OptionValue_defaultLevel=new OptionValue("loglevel","debug","Sets the default level for logging when no per-module override", LogLevelParser()), Sirikata_Logging_OptionValue_atLeastLevel=new OptionValue("maxloglevel","insane","Sets the maximum logging level any module may be set to", LogLevelParser()), Sirikata_Logging_OptionValue_moduleLevel=new OptionValue("moduleloglevel","","Sets a per-module logging level: should be formatted <module>=debug,<othermodule>=info...", LogLevelMapParser()), NULL)
std::tr1::unordered_map
< std::string, LOGGING_LEVEL > 
Sirikata::Logging::module_level

Define Documentation

#define dup2_platform   dup2
#define fileno_platform   fileno
#define LOGGING_MAX_MODULE_LENGTH   10

Variable Documentation