LogDestinationFile.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/LogDestination.h"
16 #include "CeeCore/Str.h"
17 
18 namespace cee {
19 
20 class LogEvent;
21 
22 //==================================================================================================
23 //
24 //
25 //
26 //==================================================================================================
27 class CEE_CORE_EXPORT LogDestinationFile : public LogDestination
28 {
29 public:
30  LogDestinationFile(const Str& fileName);
31  virtual ~LogDestinationFile();
32 
33  virtual Str targetName() const;
34  virtual void log(const LogEvent& logEvent);
35 
36 private:
37  CEE_PRIVATE_IMPL(LogDestinationFile);
38  CEE_DISALLOW_COPY_AND_ASSIGN(LogDestinationFile);
39 };
40 
41 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Log destination that writes output to text file.
Definition: LogDestinationFile.h:27
A general unicode based string class.
Definition: Str.h:28
Small class describing a logged event.
Definition: LogEvent.h:31
Base class for log destinations.
Definition: LogDestination.h:35