CS2-Kit
C++23 library for CS2 Metamod:Source plugin development
Loading...
Searching...
No Matches
ConsoleLogger.cpp
Go to the documentation of this file.
2
3#include <Color.h>
4#include <tier0/dbg.h>
5
6namespace CS2Kit::Core
7{
8
9void ConsoleLogger::Info(const std::string& message)
10{
11 ConColorMsg(Color(0, 255, 0, 255), "[%s] ", _prefix);
12 Msg("%s\n", message.c_str());
13}
14
15void ConsoleLogger::Warn(const std::string& message)
16{
17 ConColorMsg(Color(255, 255, 0, 255), "[%s] WARN: ", _prefix);
18 Msg("%s\n", message.c_str());
19}
20
21void ConsoleLogger::Error(const std::string& message)
22{
23 ConColorMsg(Color(255, 0, 0, 255), "[%s] ERROR: ", _prefix);
24 Msg("%s\n", message.c_str());
25}
26
27} // namespace CS2Kit::Core
void Error(const std::string &message) override
void Warn(const std::string &message) override
void Info(const std::string &message) override