fiber
Loading...
Searching...
No Matches
fiber::OutputLogger Class Reference

A logger that will write all loggings directly to an output stream. More...

#include <Scheduler.hpp>

Static Public Member Functions

static void print_symbol (std::string_view symbol)
 
static void print_time_point (TimePoint time)
 
static void print_time_point (Duration Duration)
 
static void print_primary_action (std::string_view action)
 
static void print_secondary_action (std::string_view action)
 
static void print_name (std::string_view name)
 
static void print_id (unsigned int id)
 
static void print_time (TimePoint time)
 
static void print_task (std::string_view name, unsigned int id)
 
static void log_add (TimePoint time, std::string_view name, unsigned int id, std::string_view to_queue)
 
static void log_move (TimePoint time, std::string_view name, unsigned int id, std::string_view from_queue, std::string_view to_queue)
 
static void log_resume (TimePoint time_from, TimePoint time_after, std::string_view name, unsigned int id)
 
static void log_delete (TimePoint time, std::string_view name, unsigned int id)
 
static void log_sleep (TimePoint time, TimePoint sleep_until)
 

Static Public Attributes

static OStreamRef stream
 

Detailed Description

A logger that will write all loggings directly to an output stream.

To set its output stream write to:

static OStreamRef stream
Definition Scheduler.hpp:78
Template Parameters
ClockA Clock type that conforms to the fiber::CClock concept.
See also
fiber::CClock
fiber::Scheduler

Member Function Documentation

◆ log_add()

static void fiber::OutputLogger::log_add ( TimePoint time,
std::string_view name,
unsigned int id,
std::string_view to_queue )
inlinestatic

◆ log_delete()

static void fiber::OutputLogger::log_delete ( TimePoint time,
std::string_view name,
unsigned int id )
inlinestatic

◆ log_move()

static void fiber::OutputLogger::log_move ( TimePoint time,
std::string_view name,
unsigned int id,
std::string_view from_queue,
std::string_view to_queue )
inlinestatic

◆ log_resume()

static void fiber::OutputLogger::log_resume ( TimePoint time_from,
TimePoint time_after,
std::string_view name,
unsigned int id )
inlinestatic

◆ log_sleep()

static void fiber::OutputLogger::log_sleep ( TimePoint time,
TimePoint sleep_until )
inlinestatic

◆ print_id()

static void fiber::OutputLogger::print_id ( unsigned int id)
inlinestatic

◆ print_name()

static void fiber::OutputLogger::print_name ( std::string_view name)
inlinestatic

◆ print_primary_action()

static void fiber::OutputLogger::print_primary_action ( std::string_view action)
inlinestatic

◆ print_secondary_action()

static void fiber::OutputLogger::print_secondary_action ( std::string_view action)
inlinestatic

◆ print_symbol()

static void fiber::OutputLogger::print_symbol ( std::string_view symbol)
inlinestatic

◆ print_task()

static void fiber::OutputLogger::print_task ( std::string_view name,
unsigned int id )
inlinestatic

◆ print_time()

static void fiber::OutputLogger::print_time ( TimePoint time)
inlinestatic

◆ print_time_point() [1/2]

static void fiber::OutputLogger::print_time_point ( Duration Duration)
inlinestatic

◆ print_time_point() [2/2]

static void fiber::OutputLogger::print_time_point ( TimePoint time)
inlinestatic

Member Data Documentation

◆ stream

OStreamRef fiber::OutputLogger::stream
inlinestatic

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