SSP21-CPP
log4cpp
ILogHandler.h
1
/*
2
* Copyright (c) 2019, Automatak LLC
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
6
* following conditions are met:
7
*
8
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
9
* disclaimer.
10
*
11
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
12
* disclaimer in the documentation and/or other materials provided with the distribution.
13
*
14
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
15
* products derived from this software without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
18
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
23
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
*/
25
#ifndef LOG4CPP_ILOGHANDLER_H
26
#define LOG4CPP_ILOGHANDLER_H
27
28
#include "log4cpp/LogLevels.h"
29
30
/**
31
* @brief log4cpp header-only library namespace
32
*/
33
namespace
log4cpp
34
{
35
36
/**
37
* Callback interface for log messages
38
*/
39
class
ILogHandler
40
{
41
public
:
42
virtual
~
ILogHandler
() {}
43
44
/**
45
* Callback method for log messages
46
*
47
* @param module ModuleId of the logger
48
* @param id string id of the logger
49
* @param level bitfield LogLevel of the logger
50
* @param location location in the source of the log call
51
* @param message message of the log call
52
*/
53
virtual
void
log
(
ModuleId
module,
const
char
*
id
,
LogLevel
level,
char
const
* location,
char
const
* message) = 0;
54
};
55
56
}
//namespace log4cpp
57
58
#endif //LOG4CPP_ILOGHANDLER_H
log4cpp::LogLevel
Definition:
LogLevels.h:44
log4cpp::ILogHandler::log
virtual void log(ModuleId module, const char *id, LogLevel level, char const *location, char const *message)=0
log4cpp
log4cpp header-only library namespace
Definition:
ConsolePrettyPrinter.h:36
log4cpp::ModuleId
Definition:
LogLevels.h:33
log4cpp::ILogHandler
Definition:
ILogHandler.h:39
Generated on Tue Apr 9 2019 11:41:41 for SSP21-CPP by
1.8.15