-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging_test.cc
More file actions
33 lines (28 loc) · 1011 Bytes
/
Copy pathlogging_test.cc
File metadata and controls
33 lines (28 loc) · 1011 Bytes
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
/*
* logging_test.cc
* Copyright (C) 2022 youfa.song <vsyfar@gmail.com>
*
* Distributed under terms of the GPLv2 license.
*/
#include "base/logging.h"
int main(int /*argc*/, char const* /*argv*/[]) {
#ifndef AVE_ANDROID
ave::base::LogMessage::LogTimestamps();
ave::base::LogMessage::LogThreads();
#endif
AVE_LOG(LS_INFO) << "log info1";
AVE_LOG(LS_DEBUG) << "log debug1";
AVE_LOG_IF(LS_INFO, true) << "conditional log";
AVE_LOG_V(LS_INFO) << "runtime severity log";
AVE_LOG_F(LS_INFO) << "function log";
AVE_LOG_IF_F(LS_INFO, true) << "conditional function log";
AVE_DLOG(LS_INFO) << "debug log";
AVE_DLOG_IF(LS_INFO, true) << "conditional debug log";
AVE_DLOG_V(LS_INFO) << "runtime severity debug log";
AVE_DLOG_F(LS_INFO) << "function debug log";
AVE_DLOG_IF_F(LS_INFO, true) << "conditional function debug log";
ave::base::LogMessage::LogToDebug(ave::base::LogSeverity::LS_VERBOSE);
AVE_LOG(LS_INFO) << "log info2";
AVE_LOG(LS_DEBUG) << "log debug2";
return 0;
}