You are not logged in.
Hello everyone!
I was checking my log file and I discover something strange with slim.log.
Archroot:# ls -lh slim.log
-rw-r--r-- 1 root root 172M Apr 13 22:05 slim.log
As you can see, the file is 172 mo :shock:
It's contain all message from my desktop...when I start a kde apps, mplayer, error, message from firefox etc...
Is it normal? A bug?
For information, I start slim by adding slim in my rc.conf.
Thank you for you help.
P.S. I was not sure where to make this post. Feel free to move it if it is necessary.
@+
Shaika-Dzari
http://www.4nakama.net
Offline
Sounds like you have a bit too much output going on:
$ ll /var/log/slim.log
-rw-r--r-- 1 root root 6.8K 2006-04-06 19:51 /var/log/slim.log
I'm not sure what to tell you - maybe clear it and figure out how big it gets after a day.
Offline
Thank you phrakture.
I erase the file and today same hour I will check how big it is and post here.
Can I configure how long the log file is preserved? /etc?
Thank again
@+
Shaika-Dzari
http://www.4nakama.net
Offline
Yep, you can specify how long the log files are kept around using logrotate. With default settings in /etc/logrotate.conf, the logs are rotated once in a week and kept for 4 weeks.
You also need an entry for slim in /etc/logrotate.d/ directory. I have this in my /etc/logrotate.d/slim:
/var/log/slim.log {
missingok
notifempty
copytruncate
}
Offline
I looked into the slim logfile, and mine is somewhat obtuse too, 7mb - and i havnt been runnin slim for long.
It's because slim is recording every message output by your session, and some sessions, take KDE for example, make a helluva lot of noise, and dump a lot of messages. slim is dumping this all to the file. To stop that, change your startkde line (or whatever de/wm) to
startkde &> /dev/null
and it wont be logged by slim
James
Offline
Thank both of you
I try your solution Iphitus and it seem to work.
I will check my logrotate and set this like I need.
@+
Shaika-Dzari
http://www.4nakama.net
Offline