Documentation ¶
Overview ¶
Package logf comment This file war generated by tars2go 1.1 Generated from LogF.tars
Package logf comment This file war generated by tars2go 1.1 Generated from LogF.tars
Index ¶
- type Log
- func (_obj *Log) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, ...) (err error)
- func (_obj *Log) Logger(App string, Server string, File string, Format string, Buffer []string, ...) (err error)
- func (_obj *Log) LoggerWithContext(ctx context.Context, App string, Server string, File string, Format string, ...) (err error)
- func (_obj *Log) LoggerbyInfo(Info *LogInfo, Buffer []string, _opt ...map[string]string) (err error)
- func (_obj *Log) LoggerbyInfoWithContext(ctx context.Context, Info *LogInfo, Buffer []string, _opt ...map[string]string) (err error)
- func (_obj *Log) SetServant(s m.Servant)
- func (_obj *Log) TarsSetTimeout(t int)
- type LogInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log struct
func (*Log) Dispatch ¶
func (_obj *Log) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, resp *requestf.ResponsePacket, withContext bool) (err error)
Dispatch is used to call the server side implemnet for the method defined in the tars file. withContext shows using context or not.
func (*Log) Logger ¶
func (_obj *Log) Logger(App string, Server string, File string, Format string, Buffer []string, _opt ...map[string]string) (err error)
Logger is the proxy function for the method defined in the tars file, with the context
func (*Log) LoggerWithContext ¶
func (_obj *Log) LoggerWithContext(ctx context.Context, App string, Server string, File string, Format string, Buffer []string, _opt ...map[string]string) (err error)
LoggerWithContext is the proxy function for the method defined in the tars file, with the context
func (*Log) LoggerbyInfo ¶
func (_obj *Log) LoggerbyInfo(Info *LogInfo, Buffer []string, _opt ...map[string]string) (err error)
LoggerbyInfo is the proxy function for the method defined in the tars file, with the context
func (*Log) LoggerbyInfoWithContext ¶
func (_obj *Log) LoggerbyInfoWithContext(ctx context.Context, Info *LogInfo, Buffer []string, _opt ...map[string]string) (err error)
LoggerbyInfoWithContext is the proxy function for the method defined in the tars file, with the context
func (*Log) SetServant ¶
SetServant sets servant for the service.
func (*Log) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.
type LogInfo ¶
type LogInfo struct { Appname string `json:"appname"` Servername string `json:"servername"` SFilename string `json:"sFilename"` SFormat string `json:"sFormat"` Setdivision string `json:"setdivision"` BHasSufix bool `json:"bHasSufix"` BHasAppNamePrefix bool `json:"bHasAppNamePrefix"` BHasSquareBracket bool `json:"bHasSquareBracket"` SConcatStr string `json:"sConcatStr"` SSepar string `json:"sSepar"` SLogType string `json:"sLogType"` }
LogInfo strcut implement
func (*LogInfo) WriteBlock ¶
WriteBlock encode struct