Comments (9)
If you want to change the destination directory, you can use --log_dir (or
GLOG_log_dir if you don't have gflags installed). If you want to change the
name of
log files, you may need to call SetLogDestination():
google::SetLogDestination(google::INFO, "/var/tmp/another_destination.INFO");
Original comment by [email protected]
on 12 Jan 2010 at 8:29
from google-glog.
I don't know how to use --GLOG_log_dir. But SetLogDestination() works.
Thank you.
Original comment by [email protected]
on 12 Jan 2010 at 9:04
from google-glog.
One can also try setting the GOOGLE_LOG_DIR environment variable to point to a
directory of choice.
Original comment by [email protected]
on 27 Apr 2010 at 12:46
from google-glog.
Is it safe to direct different log levels to the same log file in a
multithreaded
application?
google::SetLogDestination(google::INFO, "/var/tmp/applog.log");
google::SetLogDestination(google::WARNING, "/var/tmp/applog.log");
google::SetLogDestination(google::ERROR, "/var/tmp/applog.log");
Thanks!
Original comment by [email protected]
on 19 May 2010 at 1:32
from google-glog.
Actually, while trying to set to the same log file as mentioned above, I got
runtime
error as the following...
Could not create log file: File exists
COULD NOT CREATE LOGFILE '20100519-094242.22838'!
The reason I want to put them in the the same file is that I want to check the
events sequence according to the timestamps.
Original comment by [email protected]
on 19 May 2010 at 1:50
from google-glog.
INFO log file should have all log levels. Isn't it sufficient?
http://google-glog.googlecode.com/svn/trunk/doc/glog.html#severity
Note that messages of a given severity are logged not only in the logfile for
that
severity, but also in all logfiles of lower severity. E.g., a message of
severity
FATAL will be logged to the logfiles of severity FATAL, ERROR, WARNING, and
INFO.
Original comment by [email protected]
on 19 May 2010 at 2:39
from google-glog.
Yes, that is good enough. I did not read carefully.
Now while I am reading the INFO log carefully I do see Warnings and Errors.
Thanks and keep up the good work!
Original comment by [email protected]
on 19 May 2010 at 9:13
from google-glog.
Original comment by [email protected]
on 27 May 2010 at 9:10
- Changed state: Invalid
from google-glog.
I really appreciate the smart robust and clean glog library.
I was fed up with the issues other c++ logging libraries.
I will would have been much happier if you guys would have given the better
documentation.
Original comment by [email protected]
on 17 Sep 2010 at 11:47
from google-glog.
Related Issues (20)
- Cannot Build Google-GLog on Visual Studio 2013 HOT 2
- Warning Reduction... HOT 1
- -lexecinfo is needed for backtrace() on FreeBSD
- in VS2008 release case, the process crashed when glog output int,long and so on(numerical var)
- Error compiling glog-0.3.3
- unused parameters in mock-log.h
- Link Error while making gLog (recompile with -fIPC)
- .
- make: *** [logging_unittest-logging_unittest.o] Error 1
- Cannot compile on Linux gcc 4.8.1
- vector size() incompatability
- Glog‘s all functions are worked but InstallFailureSignalHandler() Linking failed in vs2010 HOT 1
- Add LOG_EVERY_N_SECS
- V0.3.3 build error under VS 2013 (v120)
- Demangle failed
- Process sleeps forever in FailureSignalHandler it is interrupted by another signal.
- -fPIC issue
- Symbolize can't handler address of plt
- OSX Make Error issue
- Question: how to get log file name?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-glog.