libmoost
/home/mhx/git/github/libmoost/include/moost/logging/global.hpp File Reference
#include <iostream>
#include <boost/filesystem.hpp>
#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
#include <log4cxx/logmanager.h>
#include <log4cxx/propertyconfigurator.h>
#include "../utils/singleton.hpp"
#include "pseudo_ostream.hpp"
#include "../compiler/attributes.hpp"
Include dependency graph for global.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  moost::logging::global
 Initialise the global logging API. More...

Namespaces

namespace  moost
 

Creates a unique temporary directory; removed on scope exit.


namespace  moost::logging

Defines

#define MLOG_INIT()   moost::logging::global_singleton::instance().enable(std::string(*argv))
 Allow quick and diry initialisation of logging.
#define MLOG_IS_INITIALISED()
 Allow quick and dirty checking on intialisation state.

Typedefs

typedef
moost::utils::singleton_default
< global > 
moost::logging::global_singleton
 Singleton instance of global.

Functions

 moost::logging::constructor__ (init_global_singleton)
 Ensure logging is initialised and disabled.

Define Documentation

#define MLOG_INIT ( )    moost::logging::global_singleton::instance().enable(std::string(*argv))

Allow quick and diry initialisation of logging.

Note:
This is provided for backwards compatibility with the now deprecated init_logging.hpp initialisation process.

Definition at line 55 of file global.hpp.

#define MLOG_IS_INITIALISED ( )
Value:

Allow quick and dirty checking on intialisation state.

Note:
This is provided for backwards compatibility with the now deprecated init_logging.hpp initialisation process.

Definition at line 63 of file global.hpp.