# How to read the log?

**URL:** <https://www.ruby-forum.com/t/how-to-read-the-log/74433>\
**Category:** Ruby-Forum\
**Created:** [November 7, 2006, 5:50am UTC](https://www.ruby-forum.com/t/how-to-read-the-log/74433 "2006-11-07T05:50:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praseen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed655f/32.png) [@Praseen](https://www.ruby-forum.com/u/Praseen)\
**Post date:** [November 7, 2006, 5:50am UTC](https://www.ruby-forum.com/t/how-to-read-the-log/74433/1 "2006-11-07T05:50:52Z")

</div>

```
 I want to know some testing code in watir. I have to read the log 

```

files from the server log which is showing on the Jboss server. How can  
I read that and write that in the local machine. Can you give an example  
code for reading that file from the server log and storing that into a  
txt file in the local system. Any one knows please help me for this. It  
is urgent.
