Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send the syslog output to stdout? [duplicate]

I m using syslog in myprograme to generate log messages.

Is there a way to send the syslog output of my program to stdout ?

I do not want to use the tail command to see my program log, I would like to see it directly on the console

like image 848
MOHAMED Avatar asked Mar 07 '14 14:03

MOHAMED


1 Answers

You'll want to edit your /etc/syslog.conf file.

depending on exactly what facility you're sending to syslogd, you'll need to add a line something like this:

<facility>.debug    /dev/console

be sure to check out man 5 syslog.conf for all the details..

like image 77
problemPotato Avatar answered Sep 24 '22 14:09

problemPotato