libcaf  0.15.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
caf::logger Class Reference

Centrally logs events from all actors in an actor system. More...

#include <logger.hpp>

Public Member Functions

actor_id thread_local_aid ()
 Returns the ID of the actor currently associated to the calling thread.
 
actor_id thread_local_aid (actor_id aid)
 Associates an actor ID to the calling thread and returns the last value.
 
void log (int level, const std::string &class_name, const char *function_name, const char *file_name, int line_num, const std::string &msg)
 Writes an entry to the log file.
 

Static Public Member Functions

template<class T >
static arg_wrapper< T > make_arg_wrapper (const char *name, const T &value)
 
static std::string render_type_name (const std::type_info &ti)
 
static std::string extract_class_name (const char *prettyfun, size_t strsize)
 
template<size_t N>
static std::string extract_class_name (const char(&prettyfun)[N])
 

Friends

class actor_system
 

Detailed Description

Centrally logs events from all actors in an actor system.

To enable logging in your application, you need to define CAF_LOG_LEVEL. Per default, the logger generates log4j compatible output.


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