OnixS C++ Euronext Optiq MDG Handler 1.3.4
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 copyright law
5* and international copyright treaties.
6*
7* Access to and use of the software is governed by the terms of the applicable ONIXS Software
8* Services Agreement (the Agreement) and Customer end user license agreements granting
9* a non-assignable, non-transferable and non-exclusive license to use the software
10* for it's own data processing purposes under the terms defined in the Agreement.
11*
12* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13* of this source code or associated reference material to any other location for further reproduction
14* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15*
16* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17* the terms of the Agreement is a violation of copyright law.
18*/
19
20#pragma once
21
23
24#include <string>
25
26namespace OnixS
27{
28 namespace Euronext
29 {
30 namespace MarketData
31 {
32 namespace OptiqMdg
33 {
34
36 struct ONIXS_EURONEXT_OPTIQMDG_API LogLevel
37 {
47 };
48
50 ONIXS_EURONEXT_OPTIQMDG_API std::string enumToString (LogLevel::Enum);
51
53 struct ONIXS_EURONEXT_OPTIQMDG_API LogSettings
54 {
55 enum Enum
56 {
59
63
65 Async = 0x4,
66
69
72
75
77 LogPackets = 0x40,
78
80 LogBooks = 0x80,
81
84 };
85 };
86
89 {
90 return LogSettings::Enum ( static_cast<int>(a) | static_cast<int>(b));
91 }
92
93
95 struct ONIXS_EURONEXT_OPTIQMDG_API LogFilePermission
96 {
97 enum Enum
98 {
101
103 ReadAll = 0x02,
104
107
109 WriteAll = 0x08,
110
113 };
114 };
115
118 {
119 return static_cast<LogFilePermission::Enum> (static_cast<int> (a) | static_cast<int> (b) );
120 }
121 }
122 }
123 }
124}
LogSettings::Enum operator|(LogSettings::Enum a, LogSettings::Enum b)
Typed logical operator helper.
Definition LogSettings.h:88
ONIXS_EURONEXT_OPTIQMDG_API std::string enumToString(LogLevel::Enum)
Returns string representation of ErrorCode value.
@ ReadOwnerOnly
read access only for owner of process
@ WriteOwnerOnly
write access only for owner of process
@ Fatal
Fatal error, cannot continue.
Definition LogSettings.h:40
@ Warning
User or logic error, just say about it.
Definition LogSettings.h:42
@ Error
System error, but we can go on.
Definition LogSettings.h:41
@ Trace
Used for tracing, usually including functions' names and args.
Definition LogSettings.h:44
@ ConsoleShowPrefix
if TraceToConsole is set, then append prefix to output
Definition LogSettings.h:74
@ LogPackets
Log binary data of received packets, applied only for Info log level and below.
Definition LogSettings.h:77
@ LogBooks
Log updated order book, applied only for Debug log level.
Definition LogSettings.h:80
@ ConsoleErr
if TraceToConsole is set, then direct output to stderr
Definition LogSettings.h:68
@ ConsoleColored
if TraceToConsole is set, then set up colored output mode
Definition LogSettings.h:71
@ TraceToConsole
Duplicate log messages to console.
Definition LogSettings.h:62