# Using Logger to Create a Root-Owned Log File

**URL:** <https://www.ruby-forum.com/t/using-logger-to-create-a-root-owned-log-file/193951>\
**Category:** Rails\
**Created:** [August 27, 2010, 1:56am UTC](https://www.ruby-forum.com/t/using-logger-to-create-a-root-owned-log-file/193951 "2010-08-27T01:56:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7ab992/32.png) [@djames](https://www.ruby-forum.com/u/djames)\
**Post date:** [August 27, 2010, 1:56am UTC](https://www.ruby-forum.com/t/using-logger-to-create-a-root-owned-log-file/193951/1 "2010-08-27T01:56:26Z")

</div>

I have an application which I want to write log entries to its own  
separate log file in the log directory. Of course the log directory  
is owned by root and has permissions 755. I was expecting that Logger  
would operate setuid root or something similar so that it would be  
able to write log entries to root-owned log directories. I find that  
is not the case. Any ideas how I can get Logger to write to the root-  
owned log directory?

Thanks for any input.

```
      ... doug
```
