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://safirsdkcore.com)
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
40namespace Safir
41{
42namespace Logging
43{
75
76
88 const std::wstring& message);
89
90}
91}
92
93#endif
#define LOGGING_CPP_API
Definition Log.h:32
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
SAFIR_HELPER_DLL_IMPORT void SendSystemLog(const Severity severity, const std::wstring &message)
Send log messages to the system logging mechanism.
Severity
Severity level according to RFC 3164.
Definition Log.h:50
@ Notice
RFC 3164 Description: Normal but significant condition.
Definition Log.h:67
@ Emergency
RFC 3164 Description: System is unusable.
Definition Log.h:52
@ Debug
RFC 3164 Description: Debug-level messages.
Definition Log.h:73
@ Critical
RFC 3164 Description: Critical conditions.
Definition Log.h:58
@ Error
RFC 3164 Description: Error conditions.
Definition Log.h:61
@ Warning
RFC 3164 Description: Warning conditions.
Definition Log.h:64
@ Alert
RFC 3164 Description: Action must be taken immediately.
Definition Log.h:55
@ Informational
RFC 3164 Description: Informational messages.
Definition Log.h:70