14 : _level (LOG::
DEBUG), _logStream (&
std::cout),
15 _hasBeenInitialised (false) {
19 Logger::Logger (
const Logger&)
20 : _level (LOG::
DEBUG), _logStream (&
std::cout),
21 _hasBeenInitialised (false) {
31 void Logger::init (
const BasLogParams& iLogParams) {
35 const bool hasBeenInitialised = lInstance.getStatus();
36 if (hasBeenInitialised ==
true
37 && iLogParams.getForcedInitialisationFlag() ==
false) {
42 lInstance.setLevel (iLogParams._logLevel);
43 lInstance.setStream (iLogParams._logStream);
44 lInstance.setStatus (
true);
55 std::ostream* oStream_ptr =
instance()._logStream;
56 assert (oStream_ptr != NULL);
61 void Logger::clean() {
63 lInstance.setStatus (
false);
#define STDAIR_LOG_ERROR(iToBeLogged)
Handle on the StdAir library context.
static Logger & instance()
Structure holding parameters for logging.