mirror of
https://github.com/starr-dusT/citra.git
synced 2024-10-02 10:26:17 -07:00
373efd3158
Separate code for customizing logging backends from this branch
30 lines
644 B
C++
30 lines
644 B
C++
// Copyright 2014 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
#include <cstdarg>
|
|
#include <string>
|
|
#include <utility>
|
|
#include "common/logging/log.h"
|
|
|
|
namespace Log {
|
|
|
|
class Filter;
|
|
|
|
/**
|
|
* Returns the name of the passed log class as a C-string. Subclasses are separated by periods
|
|
* instead of underscores as in the enumeration.
|
|
*/
|
|
const char* GetLogClassName(Class log_class);
|
|
|
|
/**
|
|
* Returns the name of the passed log level as a C-string.
|
|
*/
|
|
const char* GetLevelName(Level log_level);
|
|
|
|
void SetFilter(Filter* filter);
|
|
} // namespace Log
|