You are not logged in.

#1 2006-04-14 02:12:10

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

[OK] Strange slim.log file

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.

@+

Offline

#2 2006-04-14 03:04:49

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [OK] Strange slim.log file

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

#3 2006-04-14 03:14:47

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: [OK] Strange slim.log file

Thank you phrakture.

I erase the file and today same hour I will check how big it is and post here. wink

Can I configure how long the log file is preserved? /etc?

Thank again

@+

Offline

#4 2006-04-14 10:07:51

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: [OK] Strange slim.log file

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

#5 2006-04-14 11:21:03

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [OK] Strange slim.log file

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

#6 2006-04-14 22:29:18

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: [OK] Strange slim.log file

Thank both of you  wink

I try your solution Iphitus and it seem to work.
I will check my logrotate and set this like I need.

@+

Offline

Board footer

Powered by FluxBB