Too bad I don’t have a server but a XP to serve some scheduled ruby scripts. So, what’s the recommended way (gem/plug-in?) to write logs on Windows XP from ruby scripts?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the Logger standard library class:
Output to my.log:
You can change the formatting any way you like it by subclassing Logger then
override the format_message method:
Output: