log4cpp
1.1.6
Toggle main menu visibility
Loading...
Searching...
No Matches
PassThroughLayout.hh
Go to the documentation of this file.
1
/*
2
* Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
3
* Copyright 2002, Bastiaan Bakker. All rights reserved.
4
*
5
* See the COPYING file for the terms of usage and distribution.
6
*/
7
8
#if !defined(h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c)
9
#define h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c
10
11
#include <
log4cpp/Layout.hh
>
12
13
namespace
log4cpp
{
14
class
PassThroughLayout
:
public
Layout
{
15
public
:
16
virtual
std::string
format
(
const
LoggingEvent
& event) {
17
return
event
.message;
18
}
19
};
20
}
// namespace log4cpp
21
22
#endif
// h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c
Layout.hh
log4cpp::Layout
Extend this abstract class to create your own log layout format.
Definition
Layout.hh:22
log4cpp::PassThroughLayout
Definition
PassThroughLayout.hh:14
log4cpp::PassThroughLayout::format
virtual std::string format(const LoggingEvent &event)
Formats the LoggingEvent data to a string that appenders can log.
Definition
PassThroughLayout.hh:16
log4cpp
The top level namespace for all 'Log for C++' types and classes.
Definition
AbortAppender.hh:16
log4cpp::LoggingEvent
The internal representation of logging events.
Definition
LoggingEvent.hh:32
include
log4cpp
PassThroughLayout.hh
Generated by
1.17.0