LogDestination.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/RefCountedObject.h"
16 #include "CeeCore/Str.h"
17 
18 namespace cee {
19 
20 class LogEvent;
21 
22 //==================================================================================================
34 //==================================================================================================
35 class CEE_CORE_EXPORT LogDestination : public RefCountedObject
36 {
37 public:
38  virtual Str targetName() const = 0;
39  virtual void log(const LogEvent& logEvent) = 0;
40 };
41 
42 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppAssert.cpp:18
A general unicode based string class.
Definition: Str.h:28
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
Small class describing a logged event.
Definition: LogEvent.h:31
Base class for log destinations.
Definition: LogDestination.h:35