duolog

package module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 7 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

duolog

Go logger that logs to both terminal and file

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duolog

type Duolog struct {
	// Set filename, if you need to log to file
	Filename string
	// Set to true to disable coloring
	NoColor bool
	// Lexer is syntax detector - consider JSON
	Lexer string
	// Formatter defines how to format and how many colors - consider terminal256
	Formatter string
	// Theme - consider paraiso-dark
	Theme string
	// contains filtered or unexported fields
}

func (*Duolog) Logger

func (f *Duolog) Logger() *log.Logger

func (*Duolog) New

func (f *Duolog) New() error

func (Duolog) Write

func (f Duolog) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址