MAD icon indicating copy to clipboard operation
MAD copied to clipboard

Add option to set log file suffix/prefix

Open bbdoc opened this issue 4 years ago • 2 comments

Hi,

Small feature request : Would it be possible to add a launch parameter so that we can define the suffix to be used in logfile names ?

This used to be possible in the past using -sn, but since all configs have moved to DB, using -sn will be considered a a separate instance, which is not what I want, I simply want to adapt the name of the logfile but keep using the same instance. I a way -sn currently has 2 functions : specifying the instance name + specifying the log name. I would like 2 different arguments for this, e.g. -sn and -ln

Typically I could use -ln MYNAME to change : 20200221_1143_MAD.log with 20200221_1143_MYNAME.log

Thanks

bbdoc avatar Feb 21 '20 16:02 bbdoc

What's the benefit or what are you actually want to do? For larger setups with multiple instances without the actual instance support, it's probably a better idea to just write stdout logs into files and disable MAD's file logging completely.

sn0opy avatar Feb 21 '20 18:02 sn0opy

I have several scripts analysing my logs, and sometimes need to start MAD in special modes (e.g. on CD I don't use my usual areas). So being able to easily recognize which log correspond to which launch would help a lot.

bbdoc avatar Feb 21 '20 20:02 bbdoc