13df26c3
Steven
Static Logger cla...
|
1
2
3
4
5
6
7
8
9
|
#include "logtest.h"
LogTest::LogTest()
{
}
void LogTest::writeTest()
{
|
16b5ccd8
Steven
minor changes
|
10
11
12
13
14
15
16
17
18
19
20
21
|
osdev::components::log::Log::setMask( osdev::components::log::LogMask::None );
LogDebug ( "testing the debug message", "test_debug" );
LogInfo ( "testing the info message", "test_info" );
LogNotice ( "testing the notice message", "test_notice" );
LogWarning ( "testing the warning message", "test_warning" );
LogError ( "testing the error message", "test_error" );
LogCritical ( "testing the critical message", "test_critical" );
LogAlert ( "testing the alert message", "test_alert" );
LogEmergency( "testing the emergency message", "test_emergency" );
|
13df26c3
Steven
Static Logger cla...
|
22
|
osdev::components::log::Log::setMask( osdev::components::log::LogMask::Upto );
|
16b5ccd8
Steven
minor changes
|
23
|
osdev::components::log::Log::setLogLevel( osdev::components::log::LogLevel::Notice );
|
13df26c3
Steven
Static Logger cla...
|
24
|
|
16b5ccd8
Steven
minor changes
|
25
26
27
28
|
LogDebug ( "testing the debug message", "test_debug" );
LogInfo ( "testing the info message", "test_info" );
LogNotice ( "testing the notice message", "test_notice" );
LogWarning ( "testing the warning message", "test_warning" );
|
13df26c3
Steven
Static Logger cla...
|
29
|
|
16b5ccd8
Steven
minor changes
|
30
31
|
osdev::components::log::Log::setMask( osdev::components::log::LogMask::Mask );
osdev::components::log::Log::setLogLevel( osdev::components::log::LogLevel::Notice );
|
13df26c3
Steven
Static Logger cla...
|
32
|
|
16b5ccd8
Steven
minor changes
|
33
34
35
36
|
LogDebug ( "testing the debug message", "test_debug" );
LogInfo ( "testing the info message", "test_info" );
LogNotice ( "testing the notice message", "test_notice" );
LogWarning ( "testing the warning message", "test_warning" );
|
13df26c3
Steven
Static Logger cla...
|
37
38
|
}
|