~ubuntu-branches/ubuntu/trusty/log4shib/trusty

« back to all changes in this revision

Viewing changes to include/log4shib/SimpleLayout.hh

  • Committer: Package Import Robot
  • Author(s): Russ Allbery
  • Date: 2012-06-05 21:20:25 UTC
  • Revision ID: package-import@ubuntu.com-20120605212025-uyigtav7dqwvnf41
Tags: upstream-1.0.4
ImportĀ upstreamĀ versionĀ 1.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * SimpleLayout.hh
 
3
 *
 
4
 * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
 
5
 * Copyright 2000, Bastiaan Bakker. All rights reserved.
 
6
 *
 
7
 * See the COPYING file for the terms of usage and distribution.
 
8
 */
 
9
 
 
10
#ifndef _LOG4SHIB_SIMPLELAYOUT_HH
 
11
#define _LOG4SHIB_SIMPLELAYOUT_HH
 
12
 
 
13
#include <log4shib/Portability.hh>
 
14
#include <log4shib/Layout.hh>
 
15
 
 
16
namespace log4shib {
 
17
    
 
18
    /**
 
19
     * BasicLayout is a simple fixed format Layout implementation. 
 
20
     **/
 
21
    class LOG4SHIB_EXPORT SimpleLayout : public Layout {
 
22
        public:
 
23
        SimpleLayout();
 
24
        virtual ~SimpleLayout();
 
25
 
 
26
        /**
 
27
         * Formats the LoggingEvent in SimpleLayout style:<br>
 
28
         * "priority - message"
 
29
         **/
 
30
        virtual std::string format(const LoggingEvent& event);
 
31
    };        
 
32
}
 
33
 
 
34
#endif // _LOG4SHIB_SIMPLELAYOUT_HH