OnixS BME SENAF Handler C++ library 2.3.0
API documentation
Loading...
Searching...
No Matches
LogSettings.h
Go to the documentation of this file.
1/*
2 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3 *
4 * This software owned by Onix Solutions Limited [OnixS] and is protected by
5 * copyright law and international copyright treaties.
6 *
7 * Access to and use of the software is governed by the terms of the applicable
8 * ONIXS Software Services Agreement (the Agreement) and Customer end user
9 * license agreements granting a non-assignable, non-transferable and
10 * non-exclusive license to use the software for it's own data processing
11 * purposes under the terms defined in the Agreement.
12 *
13 * Except as otherwise granted within the terms of the Agreement, copying or
14 * reproduction of any part of this source code or associated reference material
15 * to any other location for further reproduction or redistribution, and any
16 * amendments to this copyright notice, are expressly prohibited.
17 *
18 * Any reproduction or redistribution for sale or hiring of the Software not in
19 * accordance with the terms of the Agreement is a violation of copyright law.
20 */
21
22#pragma once
23
24#include <OnixS/Senaf/MarketData/Export.h>
25
26#include <string>
27
28namespace OnixS { namespace Senaf { namespace MarketData {
29
31struct ONIXS_BME_SENAF_EXPORT LogLevels
32{
42
44 static Enum deserialize(const char*);
45
47 static const char* toString(Enum state);
48};
49
52
54struct ONIXS_BME_SENAF_EXPORT AdvancedLogOptions
55{
57 enum Enum
58 {
60 LogNothing = 0x00,
61
64
70
76 Async = 0x04,
77
79 LocalTime = 0x40,
80
83 };
84
86 static std::string toString(Enum state);
87};
88
90typedef unsigned AdvancedLogOptionSet;
91
92}}} // namespace OnixS::Senaf::MarketData
unsigned AdvancedLogOptionSet
Additional options to control log information.
Definition LogSettings.h:90
LogLevels::Enum LogLevel
Log level alias.
Definition LogSettings.h:51
Additional options to control log information.
Definition LogSettings.h:55
Enum
Additional options to control log information.
Definition LogSettings.h:58
@ LocalTime
Use local time instead of UTC.
Definition LogSettings.h:79
@ LogNothing
Nothing except standard information must be logged.
Definition LogSettings.h:60
static std::string toString(Enum state)
Returns string representation of a state.
static Enum deserialize(const char *)
Deserializes constant from string representation.
@ Info
Information messages.
Definition LogSettings.h:38
@ Fatal
Fatal error, cannot continue.
Definition LogSettings.h:35
@ Warning
User or logic error, just say about it.
Definition LogSettings.h:37
@ Error
System error, but we can go on.
Definition LogSettings.h:36
static const char * toString(Enum state)
Returns string representation of a state.