Closed col-panic closed 10 years ago
lib/medelexis_helpers.rb contains the method log_to_system which could be patched easily. For ruby-logging see http://rubylearning.com/satishtalim/ruby_logging.html.
Can you answer the following question:
I would rather prefer doing the logging using logrotate, s.t. its configurable in LInux
the logfilename is good! But how do you find about the hostname?
thanks
Niklaus Giger schrieb:
lib/medelexis_helpers.rb contains the method log_to_system which could be patched easily. For ruby-logging see http://rubylearning.com/satishtalim/ruby_logging.html.
Can you answer the following question:
- Should ruby do a monthly/weekly/daily rotating of the logs (1 liner)?
- How should the log file be called? I propose /var/log/.log? Meaning that when you access http://mis.example.org/more/info log entries would be placed under /var/log/mis.example.org.log
— Reply to this email directly or view it on GitHub https://github.com/ngiger/redmine_medelexis/issues/8#issuecomment-58500871.
Socket.gethostname # returns mis
hostname -f
.strip # returns mis.example.org
will not return different values for mis and mis-beta ... NameBasedResoltuion ... i thikn
Niklaus Giger schrieb:
ruby
Socket.gethostname # returns mis |hostname -f|.strip # returns mis.example.org
— Reply to this email directly or view it on GitHub https://github.com/ngiger/redmine_medelexis/issues/8#issuecomment-58504530.
Why do you want to configure it under Linux: Ruby allows the same functionality. You just have to define your requirements: see http://www.ruby-doc.org/stdlib-2.1.3/libdoc/logger/rdoc/Logger.html
Currently you are logging the stuff to /var/log/messages, I would like to separate this please, could you please check that I may set a different log location for all redmine_medelexis related tasks (licenses, cleanup, trial to licensed scripts ...) thanks