13.07.2015 Views

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 11 ■ TRACKING DOWN BUGSPriority Labelmailmarknewssysloguseruucplocal0–local7DescriptionFor any mail applicationProduces timestamps in log filesFor any news applicationGeneral log messagesAny user process; also the default facilityUUCP messagesReserved for local useTable 11-2. syslog Priority LevelsSecurity Level Priority Keyword0 Emergencies emerg1 Alerts alert2 Critical crit3 Errors err4 Warning warning5 Notifications notice6 Informational info7 Debugging debugTo set up where logging messages are recorded and which ones are recorded, edit /etc/syslog.conf. To log all messages with a severity higher than notifications to a single file, use this line:*.notice/var/log/messagesThis is really a bit general, though. Let’s break out the mail messages into a separate file:*.notice;mail.nonemail.notice/var/log/messages/var/log/mail224Download at WoweBook.Com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!