OnixS C++ eSpeed ITCH Market Data Handler 1.7.3
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
24
25#include <string>
26
28
30struct ONIXS_ESPEED_ITCH_API LogLevel
31{
41};
42
44ONIXS_ESPEED_ITCH_API std::string enumToString (LogLevel::Enum);
45
47struct ONIXS_ESPEED_ITCH_API LogSettings
48{
49 enum Enum
50 {
53 NoTrace = 0x00,
54
57
61
66 Async = 0x04,
67
70
73
76
78 LogPackets = 0x40,
79
81 LogBooks = 0x80,
82
85 };
86};
87
90{
91 return LogSettings::Enum ( static_cast<int>(a) | static_cast<int>(b) );
92}
93
94
96struct ONIXS_ESPEED_ITCH_API LogFilePermission
97{
98 enum Enum
99 {
102
104 ReadAll = 0x02,
105
108
110 WriteAll = 0x08,
111
114 };
115};
116
119{
120 return static_cast<LogFilePermission::Enum> (static_cast<int> (a) | static_cast<int> (b) );
121}
122
#define ONIXS_ESPEED_ITCH_NAMESPACE_BEGIN
Definition Bootstrap.h:27
#define ONIXS_ESPEED_ITCH_NAMESPACE_END
Definition Bootstrap.h:31
LogSettings::Enum operator|(LogSettings::Enum a, LogSettings::Enum b)
Typed logical operator helper.
Definition LogSettings.h:89
ONIXS_ESPEED_ITCH_API std::string enumToString(LogLevel::Enum)
Returns string representation of ErrorCode value.
Log file read permissions.
Definition LogSettings.h:97
@ ReadOwnerOnly
read access only for owner of process
@ Default
Default value.
@ WriteAll
write access for all
@ ReadAll
read access for all
@ WriteOwnerOnly
write access only for owner of process
Log level.
Definition LogSettings.h:31
@ Info
Information message.
Definition LogSettings.h:37
@ Fatal
Fatal error, cannot continue.
Definition LogSettings.h:34
@ Warning
User or logic error, just say about it.
Definition LogSettings.h:36
@ Error
System error, but we can go on.
Definition LogSettings.h:35
@ Trace
Used for tracing, usually including functions' names and args.
Definition LogSettings.h:38
@ Debug
Used for debugging.
Definition LogSettings.h:39
Logging options.
Definition LogSettings.h:48
@ ConsoleShowPrefix
if TraceToConsole is set, then append prefix to output
Definition LogSettings.h:75
@ Default
Default log settings.
Definition LogSettings.h:84
@ LogPackets
Log binary data of received packets, applied only for Info log level and below.
Definition LogSettings.h:78
@ LogBooks
Log updated order book, applied only for Debug log level.
Definition LogSettings.h:81
@ TraceToFile
Trace to the log file.
Definition LogSettings.h:56
@ ConsoleErr
if TraceToConsole is set, then direct output to stderr
Definition LogSettings.h:69
@ ConsoleColored
if TraceToConsole is set, then set up colored output mode
Definition LogSettings.h:72