Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFormatOption ¶
func NewFormatOption() formatOptions
func NewOutputOption ¶
func NewOutputOption() outputOption
NewHideOptions return OutputHideOptions set with all NOT hide
Types ¶
type Controller ¶
type Controller interface { OutputController FormatController }
func NewController ¶
func NewController(options ...Child) Controller
type FormatController ¶
type FormatOptions ¶
type FormatOptions interface { FormatJson() FormatOptions FormatText() FormatOptions FormatReadable() FormatOptions FormatOneline() FormatOptions FormatMessageRowLimit(row uint) FormatOptions FormatMessageRowUnlimit() FormatOptions // contains filtered or unexported methods }
type OutputController ¶
type OutputController interface { OutputLevel(lvl string) string OutputCursor(cursor string) string OutputTimestamp(t *time.Time) *time.Time OutputMessage(msg interface{}) interface{} OutputData(data interface{}) interface{} OutputStructName(sn string) string IsFormatMsgRowLimitted() bool LimitRowNum() int }
type OutputOption ¶
type OutputOption interface { HideLevel() OutputOption ShowLevel() OutputOption HideTimestamp() OutputOption ShowTimestamp() OutputOption HideCursor() OutputOption ShowCursor() OutputOption HideMessage() OutputOption ShowMessage() OutputOption HideData() OutputOption ShowData() OutputOption HideStructName() OutputOption ShowStructName() OutputOption // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.