ealogger
ealogger is a c++ library that provides a blazing fast and easy to use logging mechanism
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
ealogger
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
,
47
EAL_FILE_SIMPLE
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
,
65
EAL_INTERNAL
66
};
67
}
68
}
69
70
#endif
/* ifndef GLOBAL_H */
ealogger::constants::LOGGER_SINK::EAL_CONSOLE
ealogger::constants::LOG_LEVEL::EAL_FATAL
ealogger::constants::LOG_LEVEL::EAL_INTERNAL
ealogger::constants::LOG_LEVEL::EAL_DEBUG
ealogger::constants::LOG_LEVEL::EAL_ERROR
ealogger
Main namespace for ealogger.
Definition:
conversion_pattern.h:28
ealogger::constants::LOGGER_SINK::EAL_FILE_SIMPLE
ealogger::constants::LOGGER_SINK::EAL_SYSLOG
ealogger::constants::LOG_LEVEL::EAL_INFO
ealogger::constants::LOGGER_SINK
LOGGER_SINK
Supported logger Sinks.
Definition:
global.h:44
ealogger::constants::LOG_LEVEL::EAL_WARNING
ealogger::constants::LOG_LEVEL
LOG_LEVEL
An enumaration representing the supported loglevels.
Definition:
global.h:58
ealogger::constants::LOG_LEVEL::EAL_STACK
Generated on Sat May 28 2016 18:23:29 for ealogger by
1.8.11