KDK_LOGGER_SET_AUTOWRAP(3)

NAME
kdk_logger_set_autowrap - 设置日志输出自动换行

SYNOPSIS

#include <libkylog.h>

  Functions

  void kdk_logger_set_autowrap (int autowarp)

设置日志输出自动换行

Parameters
    autowarp 1表示启用启动换行，0表示禁止自动换行

Link with -lkylog.

Detailed Description

接口的主要功能是设置日志输出自动换行

EXAMPLES
    #include <libkylog.h>
    #include <assert.h>
    int main(int argc , char** argv)
    {
    	assert(kdk_logger_init("./logtest.conf") == 0);
        kdk_logger_set_autowrap(1);
    	klog_calltrace();
    	klog_debug("Debug");
    	klog_info("Info");
    	klog_notice("Notice");
    	klog_warning("Warning");
    	klog_err("Error");
    	klog_crit("Crit");
    	klog_alert("Alert");
    	klog_emerg("Emerg");
    	return 0;
    }

CONFORMING TO
These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_logger_init(), kdk_logger_flush() and kdk_logger_setdir().

SEE ALSO
kdk_logger_init(3), kdk_logger_flush(3) and kdk_logger_setdir(3).

Author

Generated automatically by Doxygen for libkylog.h from the source code.