20 cm( inst, this,
"SimpleLogger" ),
22 trace_change_counter( 0 )
28 void SimpleLogger::Print( std::string name,
LogId id, std::string entry )
32 if( this->trace_change_counter != counter )
34 this->trace_change_counter = counter;
41 for(
int i = 0; i < 25 - (int)name.length(); i++ )
42 this->text_view.
out() <<
" ";
46 this->text_view.
out() << entry << std::endl;
50 void SimpleLogger::ClientLog( ClientMarker
const * marker, SrcInfo
const & info, LogId
id, std::string
const & message )
56 this->Print( marker->name_id(),
id, message );
61 this->text_view.
out() <<
" (emitted from " << info.file <<
":" << info.line <<
")" << std::endl;
66 TreeDebugView tree( &this->
cm );
67 tree.Push( marker->instance()->instance_name().c_str() );
68 marker->instance()->debug_print_clients( &tree );
81 bool SimpleLogger::ClientLogEnabled( ClientMarker
const * marker, LogId
id )
86 void SimpleLogger::SystemLog( System
const * system, SrcInfo
const & info, LogId
id, std::string
const & message )
92 this->Print( system->debug_name(),
id, message );
97 this->text_view.
out() <<
" (emitted from " << info.file <<
":" << info.line <<
")" << std::endl;
109 bool SimpleLogger::SystemLogEnabled( System
const * system, LogId
id )