thnk you
Log rotation for custom/devel log
-
I would like to adopt the logrotation out of
loader.js
for the devel log but have trouble to loacate the file, where it is created.
-
loader.js is in the root of the nodebb installation. The log file is at
logs/output.log
-
You definitely misunderstood me. The information you provided was well known to me
But probably my question was just not clear enough - it's me to blame
At
admin->advanced->logger it is possible to configure a custom/devel log (works like charm). I'd like to rotate this logfile using the software (and not logrotate.d) since the rotation of the 'main' logfile is already done within the software I thought of adopting the method in loader.js, Therefore I was looking for the place in the code, where the devel.log is defined/created. -
Ah that functionality is handled in https://github.com/NodeBB/NodeBB/blob/master/src/logger.js