Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Log.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Anders Widén
6 *
7 *******************************************************************************
8 *
9 * This file is part of Safir SDK Core.
10 *
11 * Safir SDK Core is free software: you can redistribute it and/or modify
12 * it under the terms of version 3 of the GNU General Public License as
13 * published by the Free Software Foundation.
14 *
15 * Safir SDK Core is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22 *
23 ******************************************************************************/
24 #ifndef __SAFIR_LOGGING_LOG_H__
25 #define __SAFIR_LOGGING_LOG_H__
26 
27 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
28 
29 #ifdef logging_cpp_EXPORTS
30 # define LOGGING_CPP_API SAFIR_HELPER_DLL_EXPORT
31 #else
32 # define LOGGING_CPP_API SAFIR_HELPER_DLL_IMPORT
33 # define SAFIR_LIBRARY_NAME "logging_cpp"
34 # include <Safir/Utilities/Internal/AutoLink.h>
35 #endif
36 #define LOGGING_CPP_LOCAL SAFIR_HELPER_DLL_LOCAL
37 
38 #include <string>
39 
40 namespace Safir
41 {
42 namespace Logging
43 {
49  enum Severity
50  {
52  Emergency = 0,
53 
56 
59 
62 
65 
68 
71 
74  };
75 
76 
87  LOGGING_CPP_API void SendSystemLog(const Severity severity,
88  const std::wstring& message);
89 
90 }
91 }
92 
93 #endif
#define LOGGING_CPP_API
Definition: Log.h:32
LOGGING_CPP_API void SendSystemLog(const Severity severity, const std::wstring &message)
Send log messages to the system logging mechanism.
RFC 3164 Description: Debug-level messages.
Definition: Log.h:73
Severity
Severity level according to RFC 3164.
Definition: Log.h:49
RFC 3164 Description: Warning conditions.
Definition: Log.h:64
RFC 3164 Description: Error conditions.
Definition: Log.h:61
RFC 3164 Description: Normal but significant condition.
Definition: Log.h:67
RFC 3164 Description: System is unusable.
Definition: Log.h:52
RFC 3164 Description: Informational messages.
Definition: Log.h:70
RFC 3164 Description: Action must be taken immediately.
Definition: Log.h:55
RFC 3164 Description: Critical conditions.
Definition: Log.h:58