Documentation ¶
Index ¶
Constants ¶
View Source
const (
MAX = 6
)
Some Constants
Variables ¶
View Source
var ( FuncMaintenanceType = LogType{/* contains filtered or unexported fields */} DebugType = LogType{/* contains filtered or unexported fields */} NilObject = LogType{/* contains filtered or unexported fields */} )
Functions ¶
This section is empty.
Types ¶
type LogLevel ¶
type LogLevel int
LogLevel Object
func StringToLogLevel ¶
func (LogLevel) IsLogLevel ¶
IsLogLevel - check whether is a true log level
type LogObject ¶
type LogObject struct { Level LogLevel Module string LogType string Time int64 Additional interface{} Message interface{} }
LogObject - all methods that want to log must transfer object of this.
type Logger ¶
type Logger interface { Constructor(name string) error Close() Log(obj *LogObject) IsInitialized() bool Sync() }
Logger interface
type ZhycanLog ¶
type ZhycanLog struct { gorm.Model ServiceName string `gorm:"not null;size:256" json:"service_name"` Level string `gorm:"size:64" json:"level"` LogType string `gorm:"size:256" json:"log_type"` Module string `gorm:"size:1024" json:"module"` Message string `json:"message"` Additional string `json:"additional"` LogTime int64 `json:"logTime"` }
Click to show internal directories.
Click to hide internal directories.