Inflection
Morphology Inflection
Loading...
Searching...
No Matches
LoggerConfig.hpp
1/*
2 * Copyright 2016-2024 Apple Inc. All rights reserved.
3 */
4#pragma once
5
6#include <inflection/util/fwd.hpp>
7#include <inflection/util/LoggerConfig.h>
8
12class INFLECTION_CLASS_API inflection::util::LoggerConfig final
13{
14public:
18 static bool isTraceEnabled();
22 static bool isDebugEnabled();
26 static bool isInfoEnabled();
30 static bool isWarnEnabled();
34 static bool isErrorEnabled();
35
39 static void setLogLevel(ILogLevel newLogLevel);
40
44 static ILogLevel getLogLevel();
45
49 static void logToConsole(bool value);
50
57 static bool registerLogger(void* context, ILoggerCallback loggerCallback);
58
64 static bool unregisterLogger(void* context);
65
66private:
67 LoggerConfig() = delete;
68};
Configuration for logging in Inflection.
static void logToConsole(bool value)
static bool unregisterLogger(void *context)
static void setLogLevel(ILogLevel newLogLevel)
static bool registerLogger(void *context, ILoggerCallback loggerCallback)
static ILogLevel getLogLevel()
The C++ namespace for Inflection.
Definition fwd.hpp:11