summaryrefslogtreecommitdiff
path: root/logs.c
diff options
context:
space:
mode:
Diffstat (limited to 'logs.c')
-rw-r--r--logs.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/logs.c b/logs.c
index 697693c..0feebf7 100644
--- a/logs.c
+++ b/logs.c
@@ -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;