LeviLamina
Loading...
Searching...
No Matches
LoggerRegistry.h
1
#pragma once
2
3
#include <memory>
4
#include <string_view>
5
6
#include "ll/api/coro/Generator.h"
7
#include "ll/api/io/Logger.h"
8
9
namespace
ll::io {
10
class
LoggerRegistry
{
11
struct
Impl;
12
std::unique_ptr<Impl> impl;
13
14
LoggerRegistry
();
15
~LoggerRegistry
();
16
17
public
:
18
LLNDAPI
static
LoggerRegistry
& getInstance();
19
20
LLNDAPI std::shared_ptr<Logger> getOrCreate(std::string_view title);
21
22
LLNDAPI std::shared_ptr<Logger> tryGet(std::string_view title);
23
24
LLAPI
bool
erase(std::string_view title);
25
26
LLNDAPI
coro::Generator<Logger&>
loggers();
27
};
28
}
// namespace ll::io
ll::io::LoggerRegistry
Definition
LoggerRegistry.h:10
ll::coro::Generator
Definition
Generator.h:13
src
ll
api
io
LoggerRegistry.h
Generated on Sat Apr 26 2025 05:55:20 for LeviLamina by
1.12.0