SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
LogChannelFilter.hpp
Go to the documentation of this file.
1// Copyright (c) 2023 Sapphire's Suite. All Rights Reserved.
2
3#pragma once
4
5#ifndef SAPPHIRE_LOGGER_LOG_CHANNEL_FILTER_GUARD
6#define SAPPHIRE_LOGGER_LOG_CHANNEL_FILTER_GUARD
7
8#include <string>
9#include <unordered_map>
10
21namespace SA
22{
31 {
33 std::unordered_map<std::wstring, bool> mChannels;
34
35 bool IsSingleChannelEnabled(const std::wstring& _chanName) const;
36
37 public:
46 bool IsChannelEnabled(const std::wstring& _chanName, size_t _offset = 0u) const;
47
55 void SetChannelEnabled(const std::wstring& _chanName, bool _bEnabled);
56 };
57}
58
59
62#endif // GUARD
Definition LogChannelFilter.hpp:31
bool IsChannelEnabled(const std::wstring &_chanName, size_t _offset=0u) const
void SetChannelEnabled(const std::wstring &_chanName, bool _bEnabled)