# Append date with log

**URL:** <https://www.ruby-forum.com/t/append-date-with-log/113244>\
**Category:** Rails\
**Created:** [August 29, 2007, 6:40am UTC](https://www.ruby-forum.com/t/append-date-with-log/113244 "2007-08-29T06:40:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![selva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@selva](https://www.ruby-forum.com/u/selva)\
**Post date:** [August 29, 2007, 6:40am UTC](https://www.ruby-forum.com/t/append-date-with-log/113244/1 "2007-08-29T06:40:20Z")

</div>

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???
