weimarnetz / registrator-nodejs

registrator to register a weimarnetz knotennummer
http://reg.weimarnetz.de
0 stars 2 forks source link

write log files #4

Closed andibraeu closed 10 years ago

andibraeu commented 10 years ago

is it possible to let the registrator write warnings and errors and/or debug output to /var/log/...?

eins78 commented 10 years ago

yes it is, I just have to use the feature…

idea: turn it on with a command-line flag which also configures the path, like:

node app.js --write-logs-to /var/log/registrator.log

sounds good?

andibraeu commented 10 years ago

oh yeah! :+1:

eins78 commented 10 years ago

Had some problems with the framework which I couldn't solve; but I worked around it (and reported either the bug or my stupidity)

new option:

node app.js --logfile /path/to/logfile.txt