Documentation ¶
Index ¶
Constants ¶
View Source
const (
CustomOutO = "CustomOutO"
)
Variables ¶
This section is empty.
Functions ¶
func LogInit ¶
func LogInit(d bool, filelogger bool, f string) *zap.SugaredLogger
func logInit(d bool, f *os.File) *zap.SugaredLogger {
func StructuredInit ¶
Attn!
- if use stdOut, can leave outpathO blank: `""` (and leave `buf“ nil)
- for any case of io.Writer output just set outpathO to CustomOutO accordingly. Of cource, you can change suffix above for the scheme as you like.
Types ¶
type WriteSyncer ¶
func (WriteSyncer) Sync ¶
func (ws WriteSyncer) Sync() error
Click to show internal directories.
Click to hide internal directories.