OnixS C++ Eurex T7 Market and Reference Data (EMDI, MDI, RDI, EOBI) Handlers 19.0.3
Users' manual and 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 Eurex
29 {
30 namespace MarketData
31 {
33 struct ONIXS_EUREX_EMDI_API LogLevel
34 {
35 enum Enum : int16_t
36 {
37 Fatal = 0,
43 };
44 };
45
47 ONIXS_EUREX_EMDI_API std::string enumToString (LogLevel::Enum);
48
50 struct ONIXS_EUREX_EMDI_API LogSettings
51 {
52 enum Enum
53 {
56
60
62 Async = 0x04,
63
66
69
72
74 LogPackets = 0x40,
75
77 LogBooks = 0x80,
78
81 };
82 };
83
86 {
87 return LogSettings::Enum ((int) a | (int) b);
88 }
89 }
90 }
91}
LogSettings::Enum operator|(LogSettings::Enum a, LogSettings::Enum b)
Typed logical operator helper.
Definition LogSettings.h:85
std::string enumToString(HandlerState::Enum)
Returns string representation of HandlerState value.
@ Fatal
Fatal error, cannot continue.
Definition LogSettings.h:37
@ Warning
User or logic error, just say about it.
Definition LogSettings.h:39
@ Error
System error, but we can go on.
Definition LogSettings.h:38
@ Trace
Used for tracing, usually including functions' names and args.
Definition LogSettings.h:41
@ ConsoleShowPrefix
if TraceToConsole is set, then append prefix to output
Definition LogSettings.h:71
@ LogPackets
Log binary data of received packets, applied only for Info log level and below.
Definition LogSettings.h:74
@ LogBooks
Log updated order book, applied only for Debug log level.
Definition LogSettings.h:77
@ TraceToFile
Trace to the log file.
Definition LogSettings.h:55
@ ConsoleErr
if TraceToConsole is set, then direct output to stderr
Definition LogSettings.h:65
@ ConsoleColored
if TraceToConsole is set, then set up colored output mode
Definition LogSettings.h:68
@ Async
Use asynchronous logging.
Definition LogSettings.h:62