Append date with log

Hi,

I am tryig to create my own log file using ‘logger module’.

I am using following code,

oBjlog=Logger.new(“log/my_file.log”)
oBjlog.info(“Starting of Application”)

From above line My log file will have “Starting of Application”

Here I want to append the date before that line…

Any simple way to do this???

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs