logtest.cpp
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "logtest.h"
LogTest::LogTest()
{
}
void LogTest::writeTest()
{
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" );
osdev::components::log::Log::setMask( osdev::components::log::LogMask::Upto );
osdev::components::log::Log::setLogLevel( osdev::components::log::LogLevel::Notice );
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" );
osdev::components::log::Log::setMask( osdev::components::log::LogMask::Mask );
osdev::components::log::Log::setLogLevel( osdev::components::log::LogLevel::Notice );
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" );
}