VC:日志文件用法

    技术2022-05-19  40

    日志文件用法

    #include int main(int argc, char **argv)

    {

    openlog("MyMsgMARK", LOG_CONS | LOG_PID, 0);

    syslog(LOG_DEBUG, "This is a syslog test message generated by program '%s'/n", argv[0]);

    closelog();

    return 0;

    }


    最新回复(0)