google / glog

C++ implementation of the Google logging module
http://google.github.io/glog/
BSD 3-Clause "New" or "Revised" License
7.1k stars 2.07k forks source link

Multiple Log Files #1128

Closed SteveSelva closed 2 months ago

SteveSelva commented 2 months ago

Is it possible to use different log files for different source files instead of different log files for different severity?

sergiud commented 2 months ago

This is not possible. There's also hardly a use for this since the default log output contains the source file names.

SteveSelva commented 2 months ago

Instead of having only one logger for an application, is it possible to create another one?

sergiud commented 2 months ago

Yes, you can write a custom sink.

SteveSelva commented 2 months ago

Thanks.