Re: regarding Syslog.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, 19 Aug 2005, Bhagwat_Masalkar wrote:


Can anybody tell me how to set up my own log file. I am using SYSLOG for
logging my error from application. These log messages are going to
system file in var/log/messages, I want my separate log file.

Use user defined facility local0 ... local6 to log your application error messages to different log file. Specify the facility name while invoking openlog syscall.

Edit /etc/syslog.conf accordingly

<snip>
# Save my appl log to mylog
local0.*		/var/log/mylog
</snip>

Note: Dont forget to restart syslog service

--
Ashok S

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux