Documentation ¶
Index ¶
- func CreateCMClient(sdkConfigPath string, opts ...sdk.ChainClientOption) (*sdk.ChainClient, error)
- type LogAdapter
- func (la *LogAdapter) Debug(args ...interface{})
- func (la *LogAdapter) Debugf(format string, args ...interface{})
- func (la *LogAdapter) Error(args ...interface{})
- func (la *LogAdapter) Errorf(format string, args ...interface{})
- func (la *LogAdapter) Info(args ...interface{})
- func (la *LogAdapter) Infof(format string, args ...interface{})
- func (la *LogAdapter) Warn(args ...interface{})
- func (la *LogAdapter) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCMClient ¶
func CreateCMClient(sdkConfigPath string, opts ...sdk.ChainClientOption) (*sdk.ChainClient, error)
CreateCMClient 创建长安链客户端 chainMaker
Types ¶
type LogAdapter ¶
type LogAdapter struct {
// contains filtered or unexported fields
}
LogAdapter 是 logx.Logger 到 utils.Logger 的适配器
func (*LogAdapter) Debug ¶
func (la *LogAdapter) Debug(args ...interface{})
func (*LogAdapter) Debugf ¶
func (la *LogAdapter) Debugf(format string, args ...interface{})
func (*LogAdapter) Error ¶
func (la *LogAdapter) Error(args ...interface{})
func (*LogAdapter) Errorf ¶
func (la *LogAdapter) Errorf(format string, args ...interface{})
func (*LogAdapter) Info ¶
func (la *LogAdapter) Info(args ...interface{})
func (*LogAdapter) Infof ¶
func (la *LogAdapter) Infof(format string, args ...interface{})
func (*LogAdapter) Warn ¶
func (la *LogAdapter) Warn(args ...interface{})
Warn 实现 utils.Logger 接口中的 Warn 方法
func (*LogAdapter) Warnf ¶
func (la *LogAdapter) Warnf(format string, args ...interface{})
Warnf 实现 utils.Logger 接口中的 Warnf 方法
Click to show internal directories.
Click to hide internal directories.