syslogd switches

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
kirkgbr
DD-WRT Novice


Joined: 03 Aug 2007
Posts: 17

PostPosted: Tue May 20, 2008 22:03    Post subject: syslogd switches Reply with quote
Anyone know what the possible switches are for the syslogd daemon running on dd-wrt v24. I was kinda hoping for something to put syslogd into debug mode.
Sponsor
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Tue May 20, 2008 23:14    Post subject: Reply with quote
From the source code:

Code:

/* Options */
   enum {
           OPTBIT_mark = 0, // -m
           OPTBIT_nofork, // -n
           OPTBIT_outfile, // -O
           OPTBIT_loglevel, // -l
           OPTBIT_small, // -S
           USE_FEATURE_ROTATE_LOGFILE(OPTBIT_filesize   ,) // -s
           USE_FEATURE_ROTATE_LOGFILE(OPTBIT_rotatecnt  ,) // -b
           USE_FEATURE_REMOTE_LOG(    OPTBIT_remote     ,) // -R
           USE_FEATURE_REMOTE_LOG(    OPTBIT_localtoo   ,) // -L
           USE_FEATURE_IPC_SYSLOG(    OPTBIT_circularlog,) // -C
kirkgbr
DD-WRT Novice


Joined: 03 Aug 2007
Posts: 17

PostPosted: Tue May 20, 2008 23:47    Post subject: Reply with quote
Thanks soulstace,

now just gotta determine that -l switch. It maybe what I am looking for.
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Tue May 20, 2008 23:57    Post subject: Reply with quote
Here is some more detail from the Busybox site

Code:

syslogd
syslogd [OPTION]...

System logging utility. Note that this version of syslogd ignores /etc/syslog.conf.

Options:
        -n              Run in foreground
        -O FILE         Log to given file (default=/var/log/messages)
        -l n            Set local log level
        -S              Smaller logging output
        -s SIZE         Max size (KB) before rotate (default=200KB, 0=off)
        -b NUM          Number of rotated logs to keep (default=1, max=99, 0=purge)
        -R HOST[:PORT]  Log to IP or hostname on PORT (default PORT=514/UDP)
        -L              Log locally and via network (default is network only if -R)
        -C[size(KiB)]   Log to shared mem buffer (read it using logread)

Example:
        $ syslogd -R masterlog:514
        $ syslogd -R 192.168.1.1:601
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum