Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I Stop Icecast2 from writing an “error.log” file??

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Thu Jun 12, 2008 8:18 pm    Post subject: How do I Stop Icecast2 from writing an “error.log” file?? Reply with quote

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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Jun 12, 2008 9:00 pm    Post subject: Reply with quote

you can reduce the log level or possibly make error.log refer to /dev/null

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Fri Jun 13, 2008 2:09 am    Post subject: Reply with quote

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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 13, 2008 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Fri Jun 13, 2008 3:01 am    Post subject: Reply with quote

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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 13, 2008 1:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber