| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Thu Jun 12, 2008 8:18 pm Post subject: How do I Stop Icecast2 from writing an “error.log” file?? |
|
|
I’m doing a experiment with a old laptop and want to replace its hard drive with a Compact Flash card with IDE Adapter.
I read on the web that the Compact Flash card has a limited number of Writes till it fails.
I ran Filemon to see who writes to the hard drive the most and Icecast2’s “error.log” files Wins 1st place!
How do I Stop Icecast2 from writing an “error.log” file??
I don’t need the file and it grows very big over time. Icecast works fine.
Thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Jun 12, 2008 9:00 pm Post subject: |
|
|
you can reduce the log level or possibly make error.log refer to /dev/null
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Fri Jun 13, 2008 2:09 am Post subject: |
|
|
| karlH wrote: |
you can reduce the log level or possibly make error.log refer to /dev/null
karl. |
Please help me with placement
In icecast.xml I see stuff like:
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
Where do I put “/dev/null” at ?
Thanks
Tom |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jun 13, 2008 2:50 am Post subject: |
|
|
your loglevel setting is 4 so that produces debug ie lots of logging, set to 1 to have only errors. error.log is located in <logdir> so create a symlink (ln -s) to link to /dev/null if you don't want to keep the content.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Fri Jun 13, 2008 3:01 am Post subject: |
|
|
| karlH wrote: |
your loglevel setting is 4 so that produces debug ie lots of logging, set to 1 to have only errors. error.log is located in <logdir> so create a symlink (ln -s) to link to /dev/null if you don't want to keep the content.
karl. |
Thanks Karl for the Quick reply!
But im a Noobie is this, and it looks Greek to me, So my changes would look like this:
<logging>
<accesslog>access.log</accesslog>
<errorlog>ln -s /dev/null</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
did I do it right? (the ln -s /dev/null part)
I notice there a access.log can i put ln -s /dev/null there too?
I really dont want to Writing to the harddrive at all.
Thanks Again! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jun 13, 2008 1:25 pm Post subject: |
|
|
man ln to look at the details for creating a symbolic link. You could use /dev/null for the filename as well I suspect. The access log will also be used as well so if you want to prevent all logging then you have to do something with that as well.
karl. |
|
| Back to top |
|
 |
|