diff options
Diffstat (limited to 'logs.c')
-rw-r--r-- | logs.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -51,6 +51,30 @@ int bbs_log_article( const char *syslname ) } +int bbs_log_article_list( const char *syslname ) +{ + int ret=0; + + setlogmask (LOG_UPTO (LOG_NOTICE)); + + if ( syslname == NULL ) + { + openlog ( BBS_DEFAULT_SYSLOG, LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1); + } else + { + openlog ( syslname, LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1 ); + } + + //probably not fake visitor + syslog( LOG_NOTICE, "BBS article list" ); + + closelog (); + + + return ret; +} + + int bbs_log_motd( const char *syslname ) { int ret=0; |