2016-11-09 20:56:57 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Intel Corporation
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-11-09 20:56:57 +08:00
|
|
|
*/
|
|
|
|
|
2016-12-18 01:56:56 +08:00
|
|
|
#include <logging/sys_log.h>
|
2016-11-09 20:56:57 +08:00
|
|
|
|
|
|
|
void syslog_hook_default(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
(void)(fmt); /* Prevent warning about unused argument */
|
|
|
|
}
|
|
|
|
|
|
|
|
void (*syslog_hook)(const char *fmt, ...) = syslog_hook_default;
|
|
|
|
|
|
|
|
void syslog_hook_install(void (*hook)(const char *, ...))
|
|
|
|
{
|
|
|
|
syslog_hook = hook;
|
|
|
|
}
|