-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglog.cpp
More file actions
36 lines (30 loc) · 761 Bytes
/
glog.cpp
File metadata and controls
36 lines (30 loc) · 761 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
34
/*
* =====================================================================================
*
* Filename: glog.cpp
*
* Description:
*
* Version: 1.0
* Created: 09/29/2017 02:11:47 PM
* Last Modified: 2019-09-03 00:21:58
* Revision: none
* Compiler: gcc
*
* Author: zt (),
* Organization:
*
* =====================================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include <glog/logging.h>
int main ( int argc, char* argv[] )
{
( void ) argc;
( void ) argv;
google::InitGoogleLogging ( ( const char* ) argv[0] );
google::SetLogDestination ( google::GLOG_INFO, "./a.log" );
LOG ( WARNING ) << "thiasdfasf";
return 0;
}