# Logger

**URL:** <https://www.ruby-forum.com/t/logger/142209>\
**Category:** Rails\
**Created:** [July 4, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/logger/142209 "2008-07-04T16:42:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@mariek](https://www.ruby-forum.com/u/mariek)\
**Post date:** [July 4, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/logger/142209/1 "2008-07-04T16:42:25Z")

</div>

I need to modify a little the output of my \*.log files.

So I wanted to ask if it possible to generate some identifier(based on  
some random value)  
AND  
then add it for each line that correspond to an error that appeared ??

---

<div class="post-metadata">

**Author:** ![mariek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@mariek](https://www.ruby-forum.com/u/mariek)\
**Post date:** [July 4, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/logger/142209/2 "2008-07-04T16:47:06Z")

</div>

the reason of this problem is that I use syslog to put it to file ,  
and in this file errors from rails can get mixed with other messages,  
so I need this identifier to extract it from other stuff
