summaryrefslogtreecommitdiffstats
path: root/logs.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2014-11-16 11:10:23 +0900
committerFreeArtMan <dos21h@gmail.com>2014-11-16 11:10:23 +0900
commite8574a9621a2cbe50b22aa5aa8114bcebce22b38 (patch)
tree6e77d3872827926ce108f15e312d699fefbbd23a /logs.c
parentc84cc88f0b34d8802390e2a7b6dab7f07ba277d1 (diff)
downloadmicrobbs-e8574a9621a2cbe50b22aa5aa8114bcebce22b38.tar.gz
microbbs-e8574a9621a2cbe50b22aa5aa8114bcebce22b38.zip
Preparation to article list feature. Added debug.h and mmm.h
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;