📄 tsyslog.cpp
字号:
// tsyslog.cpp// program to test syslog facililty (specifically, if root access is req'd)// copyright SafeTP Development Group, Inc., 2000 Terms of use are as specified in license.txt#include <syslog.h> // openlog, syslogint main(){ openlog("tsyslog", LOG_PID, LOG_DAEMON); syslog(LOG_INFO, "This is an informational log from tsyslog."); syslog(LOG_DEBUG, "This is a debug log from tsyslog."); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -