Loading...
Searching...
No Matches
SimpleLayout.hh
Go to the documentation of this file.
/*
* SimpleLayout.hh
*
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2000, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4SHIB_SIMPLELAYOUT_HH
#define _LOG4SHIB_SIMPLELAYOUT_HH
#include <log4shib/Portability.hh>
#include <log4shib/Layout.hh>
namespace log4shib {
class LOG4SHIB_EXPORT SimpleLayout : public Layout {
public:
SimpleLayout();
virtual ~SimpleLayout();
virtual std::string format(const LoggingEvent& event);
};
}
#endif // _LOG4SHIB_SIMPLELAYOUT_HH
LOG4SHIB_EXPORT
#define LOG4SHIB_EXPORT
Definition Export.hh:11
Layout.hh
Portability.hh
log4shib::Layout
Extend this abstract class to create your own log layout format.
Definition Layout.hh:22
log4shib::SimpleLayout::format
virtual std::string format(const LoggingEvent &event)
Formats the LoggingEvent in SimpleLayout style: "priority - message".
Definition SimpleLayout.cpp:25
log4shib::SimpleLayout::SimpleLayout
SimpleLayout()
Definition SimpleLayout.cpp:19
log4shib
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
log4shib::LoggingEvent
The internal representation of logging events.
Definition LoggingEvent.hh:32