wofan / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Ability to change the output filenames #100

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call google::InitGoogleLogging
2. call google::SetLogDestination("c:\one.txt");
3. output some logging
4. call google::SetLogDestination("c:\two.txt");
5. output more logging
6. call google::ShutdownGoogleLogging

What is the expected output?
 logging from step 3 in one.txt
 logging from step 5 in two.txt only

What do you see instead?
 step 3 logging in file one.txt
 step 5 logging in file in /tmp/xxxxxx
 no output in two.txt

What version of the product are you using?
 glog-0.3.1

On what operating system?
 windows (sadly)

Please provide any additional information below.
 My use case is to have multiple log files where each file represents an item of work. Multiple items of work are processed by the application.

Original issue reported on code.google.com by martinsi...@gmail.com on 27 Sep 2011 at 5:57