Documentation ¶
Index ¶
- func AddAdapter(cfgs map[string]string) error
- func CF_DEBUG(category string, fields []TField, format string, arg ...interface{})
- func CF_ERROR(category string, fields []TField, format string, arg ...interface{})
- func CF_FATAL(category string, fields []TField, format string, arg ...interface{})
- func CF_INFO(category string, fields []TField, format string, arg ...interface{})
- func CF_INFO2(category string, fields []TField, format string, arg ...interface{})
- func CF_INFO3(category string, fields []TField, format string, arg ...interface{})
- func CF_TRACE(category string, fields []TField, format string, arg ...interface{})
- func CF_WARN(category string, fields []TField, format string, arg ...interface{})
- func DEBUG(format string, arg ...interface{})
- func DisableAdapter(na string) error
- func ERROR(format string, arg ...interface{})
- func EnableAdapter(na string) error
- func FATAL(format string, arg ...interface{})
- func GetAdapterCfgs(na string) (map[string]string, error)
- func GetDspCallpath() bool
- func INFO(format string, arg ...interface{})
- func INFO2(format string, arg ...interface{})
- func INFO3(format string, arg ...interface{})
- func LoadCfgFromFile(filename string) error
- func SaveCfgToFile(filename string) error
- func SetAdapterCfgs(na string, kvs map[string]string) (map[string]string, error)
- func SetDspCallpath(b bool) bool
- func TRACE(format string, arg ...interface{})
- func WARN(format string, arg ...interface{})
- type TAdapterType
- type TField
- type TLogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCfgFromFile ¶
从一个指定文件中装载配置,如果文件名为空,那么从默认配置文件中进行装载
func SetAdapterCfgs ¶
设置指定adapter属性
Types ¶
type TAdapterType ¶
type TAdapterType byte
*
@author: lgh @date: 2022/2/27 @note
*
const ( ADAPTER_NONE TAdapterType = 0 ADAPTER_CONSOLE TAdapterType = 1 ADAPTER_FILE TAdapterType = 2 ADAPTER_SYSLOG TAdapterType = 3 ADAPTER_ES TAdapterType = 4 ADAPTER_INFLUXDB TAdapterType = 5 )
func String2AdapterType ¶
func String2AdapterType(ty string) TAdapterType
func (TAdapterType) String ¶
func (t TAdapterType) String() string
type TLogLevel ¶
type TLogLevel byte
*
@author: lgh @date: 2022/2/27 @note
*
func SetAdapterLogLevel ¶
设置指定adapter日志级别
func String2LogLevel ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.