MongoDB : How to separate the log file by date? -


i'd separate log files date.
instance,

 mongodb2015-08-23.log mongodb2015-08-24.log mongodb2015-08-25.log 

i cannot find way this.
did miss options in config file?

my mongodb config file below.

 systemlog:  destination: file  path: c:/mongodb/mongodb.log  logappend: true 

how can fix it?

one solution create cron job (scheduled task) rename

mongodb.log mongodb2015-08-23.login last seconds (if possible) right before date change 2015-08-24, example.

here brought specific date, need make generic.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -