LogEvent.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop 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 #include "CeeCore/CodeLocation.h"
18 
19 namespace cvf {
20  class LogEvent;
21 }
22 
23 namespace cee {
24 
25 
26 //==================================================================================================
27 //
28 //
29 //
30 //==================================================================================================
31 class CEE_CORE_EXPORT LogEvent
32 {
33 public:
34  ~LogEvent();
35 
36  Str source() const;
37  int level() const;
38  Str message() const;
39  CodeLocation location() const;
40 
41 private:
42  LogEvent(const cvf::LogEvent& cvfLogEvent);
43 
44 private:
45  CEE_BASE_F(LogDestinationAdapter);
46  CEE_BASE_F(LogDestinationConsole);
47  CEE_BASE_F(LogDestinationFile);
48  CEE_PRIVATE_IMPL(LogEvent);
49  CEE_DISALLOW_COPY_AND_ASSIGN(LogEvent);
50 };
51 
52 
53 } // namespace cee
Definition: LogEvent.h:19
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppAssert.cpp:18
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
Represents a source code location.
Definition: CodeLocation.h:23
Small class describing a logged event.
Definition: LogEvent.h:31