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

« back to all changes in this revision

Viewing changes to src/LoggingEvent.cpp

  • 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
 * LoggingEvent.cpp
 
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
#include "PortabilityImpl.hh"
 
11
#include <log4shib/LoggingEvent.hh>
 
12
#include <log4shib/threading/Threading.hh>
 
13
 
 
14
namespace log4shib {
 
15
    
 
16
    LoggingEvent::LoggingEvent(const std::string& categoryName, 
 
17
                               const std::string& message,
 
18
                               const std::string& ndc, 
 
19
                               Priority::Value priority) :
 
20
        categoryName(categoryName),
 
21
        message(message),
 
22
        ndc(ndc),
 
23
        priority(priority),
 
24
        threadName(threading::getThreadId()) {
 
25
    }
 
26
}