LogEvent.h
1 //##################################################################################################
2 //
3 // Ceetron 3D Components
4 // Component: Core
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeCore/Base.h"
16 #include "CeeCore/Str.h"
17 
18 namespace cvf {
19  class LogEvent;
20 }
21 
22 namespace cee {
23 
24 
25 //==================================================================================================
26 //
27 //
28 //
29 //==================================================================================================
30 class CEE_CORE_EXPORT LogEvent
31 {
32 public:
33  ~LogEvent();
34 
35  Str source() const;
36  int level() const;
37  Str message() const;
38 
39 private:
40  LogEvent(const cvf::LogEvent& cvfLogEvent);
41 
42 private:
43  CEE_BASE_F(LogDestinationAdapter);
44  CEE_BASE_F(LogDestinationConsole);
45  CEE_BASE_F(LogDestinationFile);
46  CEE_PRIVATE_IMPL(LogEvent);
47  CEE_DISALLOW_COPY_AND_ASSIGN(LogEvent);
48 };
49 
50 
51 } // namespace cee
Definition: LogEvent.h:18
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppLogging.cpp:20
Log destination that writes output to text file.
Definition: LogDestinationFile.h:27
A general unicode based string class.
Definition: Str.h:28
Log destination that writes output to console.
Definition: LogDestinationConsole.h:26
Small class describing a logged event.
Definition: LogEvent.h:30