Write log messages to std::cout. More...
#include <senf/Utils/Logger/ConsoleTarget.hh>
Static Public Member Functions | |
static ConsoleTarget & | instance () |
static void | logToStderr () |
Additional Inherited Members | |
![]() | |
enum | action_t { ACCEPT, REJECT } |
Routing action. More... | |
typedef RIB::const_iterator | iterator |
Routing table iterator. More... | |
typedef RIB::size_type | size_type |
![]() | |
std::ostream & | stream () const |
void | stream (std::ostream &newos) |
IOStreamTarget (std::string const &name, std::ostream &os) | |
![]() | |
iterator | begin () const |
Iterator to beginning of routing table. More... | |
iterator | end () const |
Iterator past the end of routing table. More... | |
RoutingEntry const & | operator[] (size_type i) const |
Access routing entry. More... | |
size_type | size () const |
Number of routing table entries. More... | |
bool | empty () const |
true , if routing table empty, false otherwise More... | |
void | flush () |
Clear routing table. More... | |
senf::console::ScopedDirectory & | consoleDir () |
Get console/config directory. More... | |
Target (std::string const &name) | |
virtual | ~Target () |
template<class Stream , class Area , class Level > | |
void | route (action_t action=ACCEPT, int index=-1) |
Add route (static) More... | |
void | route (std::string const &stream, std::string const &area="", unsigned level=NONE::value, action_t action=ACCEPT, int index=-1) |
Add route (dynamic) More... | |
template<class Stream , class Area , class Level > | |
void | unroute (action_t action=ACCEPT) |
Remove route (static) More... | |
void | unroute (std::string const &stream, std::string const &area="", unsigned level=NONE::value, action_t action=ACCEPT) |
Remove route (dynamic) More... | |
void | unroute (int index=-1) |
Remove route (indexed) More... | |
![]() | |
void | v_write (time_type timestamp, std::string const &stream, std::string const &area, unsigned level, std::string const &message) |
Called to write out the routing message. More... | |
![]() | |
std::ostream & | operator<< (std::ostream &os, Target::action_t const &action) |
Write route action. More... | |
Write log messages to std::cout.
IOStreamTarget writing to std::cout. This is a singleton target which always exists. Access it via senf::log::ConsoleTarget::instance()
Definition at line 41 of file ConsoleTarget.hh.
|
static |
Definition at line 28 of file ConsoleTarget.cc.
|
static |
Definition at line 34 of file ConsoleTarget.cc.