Template Class Log

Inheritance Relationships

Base Type

Class Documentation

template<const char *name>
class Log : public CE::Logging::LogHandle

Owned named logger with the LogHandle lifecycle and operation contracts.

Template Parameters:

name – Category filename component with static character storage; normal construction owns independent backend state. Keep an application ProcessLifetime until every caller and final closure finishes.

Public Functions

inline explicit Log(FileEventHandlers handlers = {}, Config configuration = Config::for_logger(name))

Construct an independently owned named log using LogHandle’s validated opening path.

See also

Detailed guide

Parameters:
  • handlers – Owned file callbacks retained through final closure.

  • configuration – Initial rotation, destination and runtime levels. Unlike Logger<name>, another Log with the same template name is not a singleton access path.