The Battle for Wesnoth  1.17.4+dev
Public Member Functions | Private Attributes | List of all members
lg::log_in_progress Class Reference

#include <log.hpp>

Public Member Functions

 log_in_progress (std::ostream &stream)
void operator| (formatter &&message)
void set_indent (int level)
void enable_timestamp ()
void set_prefix (const std::string &prefix)

Private Attributes

std::ostream & stream_
int indent_ = 0
bool timestamp_ = false
std::string prefix_

Detailed Description

Definition at line 128 of file log.hpp.

Constructor & Destructor Documentation

◆ log_in_progress()

lg::log_in_progress::log_in_progress ( std::ostream &  stream)

Definition at line 235 of file log.cpp.

Member Function Documentation

◆ enable_timestamp()

void lg::log_in_progress::enable_timestamp ( )

Definition at line 258 of file log.cpp.

References timestamp_.

Referenced by lg::logger::operator()().

◆ operator|()

void lg::log_in_progress::operator| ( formatter &&  message)

◆ set_indent()

void lg::log_in_progress::set_indent ( int  level)

Definition at line 254 of file log.cpp.

References indent_, and game_config::images::level.

Referenced by lg::logger::operator()().

◆ set_prefix()

void lg::log_in_progress::set_prefix ( const std::string &  prefix)

Definition at line 262 of file log.cpp.

References prefix_.

Referenced by lg::logger::operator()().

Member Data Documentation

◆ indent_

int lg::log_in_progress::indent_ = 0

Definition at line 130 of file log.hpp.

Referenced by set_indent().

◆ prefix_

std::string lg::log_in_progress::prefix_

Definition at line 132 of file log.hpp.

Referenced by operator|(), and set_prefix().

◆ stream_

std::ostream& lg::log_in_progress::stream_

Definition at line 129 of file log.hpp.

Referenced by operator|().

◆ timestamp_

bool lg::log_in_progress::timestamp_ = false

Definition at line 131 of file log.hpp.

Referenced by enable_timestamp(), and operator|().

The documentation for this class was generated from the following files: