Append date with log


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

I am using following code,“log/my_file.log”)“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