Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
bomberman::log Namespace Reference

Centralized logging interface for the project. More...

Classes

struct  LogConfig
 

Functions

LogConfig makeDefaultConfig ()
 Builds the hardcoded default logging configuration.
 
std::string defaultConfigFilePath ()
 Returns the default logging config path.
 
bool resolveConfig (LogConfig &outConfig, bool hasBaseLevelOverride, spdlog::level::level_enum baseLevelOverride, bool hasLogFileOverride, const std::string &logFileOverride, std::string &outError)
 Resolves the final logging config from defaults, default file input, and CLI-style overrides.
 
void init (const LogConfig &config)
 Initializes all named loggers.
 
void init (spdlog::level::level_enum baseLevel=static_cast< spdlog::level::level_enum >(BOMBERMAN_DEFAULT_LOG_LEVEL), const std::string &logFile="")
 Convenience overload that initializes from a base level plus optional log file path.
 
spdlog::logger * client ()
 Client bootstrap and top-level runtime.
 
spdlog::logger * server ()
 Dedicated-server lifecycle and round flow.
 
spdlog::logger * game ()
 SDL/game runtime outside netcode semantics.
 
spdlog::logger * netConn ()
 Session lifecycle and lobby/match admission.
 
spdlog::logger * netPacket ()
 Raw transport queueing/dispatch detail.
 
spdlog::logger * netProto ()
 Protocol misuse and malformed payloads.
 
spdlog::logger * netInput ()
 Authoritative input and prediction/replay anomalies.
 
spdlog::logger * netSnapshot ()
 Snapshot, correction, and gameplay-event transport.
 
spdlog::logger * netDiag ()
 Diagnostics summaries and recorder lifecycle.
 

Detailed Description

Centralized logging interface for the project.

Function Documentation

◆ init()

void bomberman::log::init ( const LogConfig config)

Initializes all named loggers.

Parameters
configFinal resolved logging configuration.

◆ resolveConfig()

bool bomberman::log::resolveConfig ( LogConfig outConfig,
bool  hasBaseLevelOverride,
spdlog::level::level_enum  baseLevelOverride,
bool  hasLogFileOverride,
const std::string &  logFileOverride,
std::string &  outError 
)

Resolves the final logging config from defaults, default file input, and CLI-style overrides.

Precedence is:

  1. hardcoded defaults,
  2. default config file if present,
  3. explicit base-level override,
  4. explicit log-file override.