ealogger
ealogger is a c++ library that provides a blazing fast and easy to use logging mechanism
global.h
Go to the documentation of this file.
1 // ealogger is a simple, asynchronous and powerful logger library for c++
2 // Copyright 2013 - 2016 Christian Rapp
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef GLOBAL_H
17 #define GLOBAL_H
18 
24 // macro to mark ununsed function arguments so they don't produce a compiler
25 // warning
26 #ifdef __GNUC__
27 #define ATTR_UNUSED __attribute__((unused))
28 #else
29 #define ATTR_UNUSED
30 #endif
31 
32 namespace ealogger
33 {
38 namespace constants
39 {
44 enum class LOGGER_SINK {
45  EAL_CONSOLE = 0,
46  EAL_SYSLOG,
48 };
49 // enum CONVERSION_PATTERN {};
50 
58 enum class LOG_LEVEL {
59  EAL_DEBUG = 0,
60  EAL_INFO,
61  EAL_WARNING,
62  EAL_ERROR,
63  EAL_FATAL,
64  EAL_STACK,
66 };
67 }
68 }
69 
70 #endif /* ifndef GLOBAL_H */
Main namespace for ealogger.
Definition: conversion_pattern.h:28
LOGGER_SINK
Supported logger Sinks.
Definition: global.h:44
LOG_LEVEL
An enumaration representing the supported loglevels.
Definition: global.h:58