Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::Log Class Reference

A logging utility class for the Vesper engine. More...

#include <Log.h>

Static Public Member Functions

static void Init ()
 Initializes the logging system.
static std::shared_ptr< spdlog::logger > & GetCoreLogger ()
 Returns the core logger instance.
static std::shared_ptr< spdlog::logger > & GetClientLogger ()
 Returns the client logger instance.

Static Private Attributes

static std::shared_ptr< spdlog::logger > s_CoreLogger
static std::shared_ptr< spdlog::logger > s_ClientLogger

Detailed Description

A logging utility class for the Vesper engine.

Todo
Rethink logging flow with Macros and possibly implement different loggers for different modules.

Member Function Documentation

◆ GetClientLogger()

std::shared_ptr< spdlog::logger > & Vesper::Log::GetClientLogger ( )
inlinestatic

Returns the client logger instance.

25{ return s_ClientLogger; }
static std::shared_ptr< spdlog::logger > s_ClientLogger
Definition Log.h:28

◆ GetCoreLogger()

std::shared_ptr< spdlog::logger > & Vesper::Log::GetCoreLogger ( )
inlinestatic

Returns the core logger instance.

23{ return s_CoreLogger; }
static std::shared_ptr< spdlog::logger > s_CoreLogger
Definition Log.h:27

◆ Init()

void Vesper::Log::Init ( )
static

Initializes the logging system.

17 {
18 spdlog::set_pattern("%^[%T] %n: %v%$");
19 s_CoreLogger = spdlog::stdout_color_mt("VESPER");
20 s_CoreLogger->set_level(spdlog::level::trace);
21
22 s_ClientLogger = spdlog::stdout_color_mt("APP");
23 s_ClientLogger->set_level(spdlog::level::trace);
24 }

Member Data Documentation

◆ s_ClientLogger

std::shared_ptr< spdlog::logger > Vesper::Log::s_ClientLogger
staticprivate

◆ s_CoreLogger

std::shared_ptr< spdlog::logger > Vesper::Log::s_CoreLogger
staticprivate

The documentation for this class was generated from the following files:
  • Vesper/src/Vesper/Core/Log.h
  • Vesper/src/Vesper/Core/Log.cpp