Code Monkey home page Code Monkey logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024

Original comment by [email protected] on 27 May 2010 at 9:10

  • Changed state: Invalid

from google-glog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.