I'd like to use different directories for different connections. Let's say I have connections that are being handled in separate threads/goroutines. I want them to write to different log directories. I can specify -log_dir
, but it will write to only one directory, so it's really hard to understand which log file is for.
Is there a way to do something like that using glog
or another package?