fabric/logging.h
fabric/logging.h
Namespaces
| Name |
|---|
| Syntalos |
Defines
| Name | |
|---|---|
| logRoot |
Macros Documentation
define logRoot
#define logRoot getDefaultLogger()Source code
/*
* Copyright (C) 2022-2026 Matthias Klumpp <matthias@tenstral.net>
*
* Licensed under the GNU Lesser General Public License Version 3
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the license, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <quill/LogMacros.h>
#include <quill/Logger.h>
#include "logging-codecs.h"
namespace Syntalos
{
using QuillLogger = quill::Logger;
#define logRoot getDefaultLogger()
quill::Logger *getLogger(const std::string &name);
quill::Logger *getLogger(const QString &name);
quill::Logger *getLogger(const char *name);
quill::Logger *logModTmp(const char *name);
inline quill::Logger *getDefaultLogger()
{
return getLogger("root");
}
void removeLogger(quill::Logger *logger);
void initializeSyLogSystem(quill::LogLevel consoleLogLevel = quill::LogLevel::Info);
void shutdownSyLogSystem();
} // namespace Syntalos
Updated on 2026-04-24 at 06:25:18 +0000