Documentation ¶
Overview ¶
Package logf comment This file was generated by tars2go 1.1.6 Generated from LogF.tars
Package logf comment This file was generated by tars2go 1.1.6 Generated from LogF.tars
Index ¶
- type Log
- func (obj *Log) Dispatch(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, ...) (err error)
- func (obj *Log) Logger(app string, server string, file string, format string, buffer []string, ...) (err error)
- func (obj *Log) LoggerOneWayWithContext(tarsCtx context.Context, app string, server string, file string, format string, ...) (err error)
- func (obj *Log) LoggerWithContext(tarsCtx context.Context, app string, server string, file string, format string, ...) (err error)
- func (obj *Log) LoggerbyInfo(info *LogInfo, buffer []string, opts ...map[string]string) (err error)
- func (obj *Log) LoggerbyInfoOneWayWithContext(tarsCtx context.Context, info *LogInfo, buffer []string, ...) (err error)
- func (obj *Log) LoggerbyInfoWithContext(tarsCtx context.Context, info *LogInfo, buffer []string, ...) (err error)
- func (obj *Log) SetServant(servant m.Servant)
- func (obj *Log) TarsSetProtocol(p m.Protocol)
- func (obj *Log) TarsSetTimeout(timeout int)
- type LogInfo
- type LogServant
- type LogServantWithContext
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(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, tarsResp *requestf.ResponsePacket, withContext bool) (err error)
Dispatch is used to call the server side implement 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, opts ...map[string]string) (err error)
Logger is the proxy function for the method defined in the tars file, with the context
func (*Log) LoggerOneWayWithContext ¶ added in v1.2.0
func (obj *Log) LoggerOneWayWithContext(tarsCtx context.Context, app string, server string, file string, format string, buffer []string, opts ...map[string]string) (err error)
LoggerOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Log) LoggerWithContext ¶
func (obj *Log) LoggerWithContext(tarsCtx context.Context, app string, server string, file string, format string, buffer []string, opts ...map[string]string) (err error)
LoggerWithContext is the proxy function for the method defined in the tars file, with the context
func (*Log) LoggerbyInfo ¶
LoggerbyInfo is the proxy function for the method defined in the tars file, with the context
func (*Log) LoggerbyInfoOneWayWithContext ¶ added in v1.2.0
func (obj *Log) LoggerbyInfoOneWayWithContext(tarsCtx context.Context, info *LogInfo, buffer []string, opts ...map[string]string) (err error)
LoggerbyInfoOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Log) LoggerbyInfoWithContext ¶
func (obj *Log) LoggerbyInfoWithContext(tarsCtx context.Context, info *LogInfo, buffer []string, opts ...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) TarsSetProtocol ¶ added in v1.2.0
TarsSetProtocol sets the protocol for the servant.
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 struct implement
func (*LogInfo) ResetDefault ¶ added in v1.2.0
func (st *LogInfo) ResetDefault()
func (*LogInfo) WriteBlock ¶
WriteBlock encode struct