OnixS C++ ICE Binary Order Entry Handler 1.0.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 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#pragma once
20
21#include <string>
22
23#include <OnixS/ICE/BOE/ABI.h>
24
26
29{
30 enum Enum
31 {
33 Error = 0,
34
37
39 Info = 2,
40
42 Trace = 3,
43
45 Debug = 4,
46
49 };
50
52 ONIXS_ICEBOE_EXPORTED static std::string toString(Enum value);
53
55 ONIXS_ICEBOE_EXPORTED static Enum parse(const std::string& value);
56};
57
58
61{
62 enum Enum
63 {
66
70
73 };
74
76 ONIXS_ICEBOE_EXPORTED static std::string toString(Enum type);
77
79 ONIXS_ICEBOE_EXPORTED static Enum parse(std::string value);
80};
81
84{
85 using Type = typename std::underlying_type<LogSettings::Enum>::type;
86 return static_cast<LogSettings::Enum>(static_cast<Type>(a) | static_cast<Type>(b));
87}
88
#define ONIXS_ICEBOE_NAMESPACE_BEGIN
Definition ABI.h:94
#define ONIXS_ICEBOE_NAMESPACE_END
Definition ABI.h:98
#define ONIXS_ICEBOE_EXPORTED
Definition Compiler.h:153
Represents the severity level of log messages.
Definition LogSettings.h:29
static Enum parse(const std::string &value)
Parses a log level from its textual representation.
@ Max
The most verbose level.
Definition LogSettings.h:48
@ Info
General informational messages about normal operation.
Definition LogSettings.h:39
@ Warning
A potentially harmful situation that deserves attention.
Definition LogSettings.h:36
@ Error
A serious error that prevents normal execution.
Definition LogSettings.h:33
@ Trace
Fine-grained events for tracing control flow and state.
Definition LogSettings.h:42
@ Debug
Detailed diagnostic information useful during development and testing.
Definition LogSettings.h:45
static std::string toString(Enum value)
static Enum parse(std::string value)
Parses options from the textual representation.
static std::string toString(Enum type)
@ Default
Default log settings.
Definition LogSettings.h:72
@ TraceToFile
Trace to the log file.
Definition LogSettings.h:65
@ TraceToConsole
Duplicate log messages to console.
Definition LogSettings.h:69