AudioManager  7.6.6
Native Application Runtime Environment
CAmLog.h File Reference

SPDX license identifier: MPL-2.0. More...

#include <iostream>
#include <iosfwd>
#include <stdio.h>
#include <stdexcept>
#include <fstream>
#include <stdlib.h>
#include <sstream>
#include <assert.h>

Go to the source code of this file.

Classes

class  CAmLog
 

Macros

#define DEFAULT_LOG_FOLDER   "/tmp/"
 Implements a basic logging mechanism that can be used to print debug information into a file or to the console. More...
 
#define DEFAULT_LOGFILE_PREFIX   "am_dump_"
 
#define DEFAULT_LOGFILE_EXT   ".log"
 
#define DEL(aPointer)   delete aPointer, aPointer = NULL;
 
#define CAmLogger   (*CAmLog::getDefaultLog())
 

Enumerations

enum  eCAmLogType { eCAmLogNone = 0, eCAmLogStdout = 1, eCAmLogFile = 2 }
 

Detailed Description

SPDX license identifier: MPL-2.0.

Copyright (C) 2012, BMW AG

This file is part of GENIVI Project AudioManager.

Contributions are licensed to the GENIVI Alliance under one or more Contribution License Agreements.

Author
Aleksandar Donchev, aleks.nosp@m.ande.nosp@m.r.don.nosp@m.chev.nosp@m.@part.nosp@m.ner..nosp@m.bmw.d.nosp@m.e BMW 2013

For further information see http://www.genivi.org/.

Definition in file CAmLog.h.

Macro Definition Documentation

#define CAmLogger   (*CAmLog::getDefaultLog())

Definition at line 126 of file CAmLog.h.

#define DEFAULT_LOG_FOLDER   "/tmp/"

Implements a basic logging mechanism that can be used to print debug information into a file or to the console.

It can be used either as singleton through the appropriate method getDefaultLog() or as independent instantiated object. The default initializer sets the console as output for newly created objects. Example: CAmLogger << "Text"; //to print out through the singleton object directly to the console

Definition at line 43 of file CAmLog.h.

#define DEFAULT_LOGFILE_EXT   ".log"

Definition at line 45 of file CAmLog.h.

#define DEFAULT_LOGFILE_PREFIX   "am_dump_"

Definition at line 44 of file CAmLog.h.

#define DEL (   aPointer)    delete aPointer, aPointer = NULL;

Definition at line 47 of file CAmLog.h.

Enumeration Type Documentation

Enumerator
eCAmLogNone 
eCAmLogStdout 
eCAmLogFile 

Definition at line 50 of file CAmLog.h.