X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Include%2Fplat_syslog.h;fp=Include%2Fplat_syslog.h;h=df8a3f9322c97aab77c6e561988d1e53e28c8c3f;hb=e93798699eccb72af04938fc9b0d7a836e284488;hp=a17d1196f1b487f358b69868435b8ade1f9dfc70;hpb=94f13ab3e8da393eb27ccc561d31b447b1367c56;p=scp%2Focu%2F5gnr.git diff --git a/Include/plat_syslog.h b/Include/plat_syslog.h index a17d119..df8a3f9 100644 --- a/Include/plat_syslog.h +++ b/Include/plat_syslog.h @@ -1,9 +1,21 @@ /****************************************************************************** -############################################################################### -# Copyright (c) [2017-2020] [ICT/CAS] # -# Licensed under the ORAN Software License v1.0 (License) # -############################################################################### -******************************************************************************/ +* +* Copyright (c) 2020 ICT/CAS. +* +* Licensed under the O-RAN Software License, Version 1.0 (the "Software License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* https://www.o-ran.org/software +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*******************************************************************************/ + #ifndef PLATFORM_INCLUDE_PLAT_SYSLOG_H_ @@ -14,16 +26,16 @@ /** 日志等级 */ typedef enum _tag_SYSLOG_LEVEL { - SYSLOG_CRIT = 1, ///< critical conditions - SYSLOG_ERR, ///< error conditions - SYSLOG_WARNING, ///< warning conditions - SYSLOG_INFO, ///< informational + SYSLOG_CRIT = 1, ///< critical conditions + SYSLOG_ERR, ///< error conditions + SYSLOG_WARNING, ///< warning conditions + SYSLOG_INFO, ///< informational SYSLOG_DEBUG, ///< debug info - VOS_SYSLOGLEVELS_NUM ///< max + VOS_SYSLOGLEVELS_NUM ///< max }SYSLOG_LEVEL; -/** +/** * 日志记录 * @param[in] module_id 模块ID * @param[in] iLog_Level Log等级 @@ -35,7 +47,7 @@ typedef enum _tag_SYSLOG_LEVEL VOS_SysLog(module_id, iLog_Level, __FILE__, __LINE__, __func__, content,##__VA_ARGS__); -/** +/** * 指定参数日志记录,只支持打印 %d 类型,传参必须为INT * @param[in] module_id 模块ID * @param[in] iLog_Level Log等级 @@ -48,7 +60,7 @@ typedef enum _tag_SYSLOG_LEVEL VOS_NsysLog(module_id, iLog_Level, __FILE__, __LINE__, __func__, para_no, content,##__VA_ARGS__); -/** +/** * 指定参数日志记录,只支持打印 %ld %lu %lx 类型,传参必须为LONG ULONG * @param[in] module_id 模块ID * @param[in] iLog_Level Log等级 @@ -61,7 +73,7 @@ typedef enum _tag_SYSLOG_LEVEL VOS_NsysLog_2(module_id, iLog_Level, __FILE__, __LINE__, __func__, para_no, content,##__VA_ARGS__); -/** +/** * 指定参数日志记录,只支持打印 %ld %lu %lx %d %u %x %s 类型 * @param[in] module_id 模块ID * @param[in] iLog_Level Log等级