|
μHAL (v2.7.9)
Part of the IPbus software repository
|
Go to the documentation of this file.
12 void insert ( std::ostream& aStr ,
const uint32_t& aUint )
17 void insert ( std::ostream& aStr ,
const int32_t& aInt )
22 void insert ( std::ostream& aStr ,
const bool& aBool )
28 FatalLevel::FatalLevel ( std::ostream& aStr , Base::fPtr aHeadFunction, Base::fPtr aTailFunction ) :
Base ( aStr , aHeadFunction , aTailFunction ) {}
33 <<
Time<
day,
'-',
mth,
'-',
yr,
' ',
hr,
':',
min,
':',
sec,
'.',
usec > (
Now() )
40 aStr <<
"\033[0m" << std::endl;
46 ErrorLevel::ErrorLevel ( std::ostream& aStr, Base::fPtr aHeadFunction, Base::fPtr aTailFunction ) :
Base ( aStr , aHeadFunction , aTailFunction ) {}
51 <<
Time<
day,
'-',
mth,
'-',
yr,
' ',
hr,
':',
min,
':',
sec,
'.',
usec > (
Now() )
58 aStr <<
"\033[0m" << std::endl;
69 <<
Time<
day,
'-',
mth,
'-',
yr,
' ',
hr,
':',
min,
':',
sec,
'.',
usec > (
Now() )
76 aStr <<
"\033[0m" << std::endl;
82 NoticeLevel::NoticeLevel ( std::ostream& aStr, Base::fPtr aHeadFunction, Base::fPtr aTailFunction ) :
Base ( aStr , aHeadFunction , aTailFunction ) {}
87 <<
Time<
day,
'-',
mth,
'-',
yr,
' ',
hr,
':',
min,
':',
sec,
'.',
usec > (
Now() )
94 aStr <<
"\033[0m" << std::endl;
100 InfoLevel::InfoLevel ( std::ostream& aStr, Base::fPtr aHeadFunction, Base::fPtr aTailFunction ) :
Base ( aStr , aHeadFunction , aTailFunction ) {}
105 <<
Time<
day,
'-',
mth,
'-',
yr,
' ',
hr,
':',
min,
':',
sec,
'.',
usec > (
Now() )
112 aStr <<
"\033[0m" << std::endl;
118 DebugLevel::DebugLevel ( std::ostream& aStr, Base::fPtr aHeadFunction, Base::fPtr aTailFunction ) :
Base ( aStr , aHeadFunction , aTailFunction ) {}
123 <<
Time<
day,
'-',
mth,
'-',
yr,
' ',
hr,
':',
min,
':',
sec,
'.',
usec > (
Now() )
130 aStr <<
"\033[0m" << std::endl;
Helper struct representing the Notice log level to allow us to specialize functions according to thei...
@ usec
microseconds past the second formatted as exactly six digits e.g.
WarningLevel(std::ostream &aStr=std::cout, Base::fPtr aHeadFunction=WarningLevel::colour_head, Base::fPtr aTailFunction=WarningLevel::colour_tail)
InfoLevel(std::ostream &aStr=std::cout, Base::fPtr aHeadFunction=InfoLevel::colour_head, Base::fPtr aTailFunction=InfoLevel::colour_tail)
static void colour_head(std::ostream &aStr)
@ yr
year formatted as two digits e.g.
@ day
day of the month formatted as two digits e.g.
@ hr
hour of the day formatted as two digits, 24-hour clock e.g.
static void colour_tail(std::ostream &aStr)
static void colour_head(std::ostream &aStr)
Helper struct representing the Fatal log level to allow us to specialize functions according to their...
static void colour_tail(std::ostream &aStr)
void insert(std::ostream &aStr, const U &aU)
@ min
minutes past the hour formatted as two digits e.g.
static void colour_tail(std::ostream &aStr)
FatalLevel(std::ostream &aStr=std::cout, Base::fPtr aHeadFunction=FatalLevel::colour_head, Base::fPtr aTailFunction=FatalLevel::colour_tail)
static void colour_head(std::ostream &aStr)
NoticeLevel(std::ostream &aStr=std::cout, Base::fPtr aHeadFunction=NoticeLevel::colour_head, Base::fPtr aTailFunction=NoticeLevel::colour_tail)
static void colour_tail(std::ostream &aStr)
static void colour_tail(std::ostream &aStr)
ErrorLevel(std::ostream &aStr=std::cout, Base::fPtr aHeadFunction=ErrorLevel::colour_head, Base::fPtr aTailFunction=ErrorLevel::colour_tail)
static void colour_tail(std::ostream &aStr)
@ sec
seconds past the minute formatted as two digits e.g.
timeval Now()
A helper function to return the current time.
Helper struct representing the Warning log level to allow us to specialize functions according to the...
Helper struct representing the Info log level to allow us to specialize functions according to their ...
static void colour_head(std::ostream &aStr)
@ mth
month formatted as two digits e.g.
static void colour_head(std::ostream &aStr)
_Time< DefaultTimeFmt > Time(const timeval &aTime)
Helper function which wrap the template uglyness in a pretty package.
DebugLevel(std::ostream &aStr=std::cout, Base::fPtr aHeadFunction=DebugLevel::colour_head, Base::fPtr aTailFunction=DebugLevel::colour_tail)
Helper struct representing the Debug log level to allow us to specialize functions according to their...
static void colour_head(std::ostream &aStr)
Helper struct representing the Error log level to allow us to specialize functions according to their...