logger

package module
v0.0.0-...-902a088 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: MIT Imports: 3 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

Easy logger

Build Status Go Report Card GoDoc

easy logger golang mini module

Use

	//New return *log.Logger (https://godoc.org/log#Logger)
	log := logger.New(&logger.Config{
		AppName: "you application name",
		Debug:   true,
		LogFile: "./error.log",
	})

	log.Println("custom Error message")

License:

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(lw *Config) *log.Logger

New return https://godoc.org/log

Types

type Config

type Config struct {
	AppName string
	Debug   bool
	LogFile string
	// contains filtered or unexported fields
}

Config

func (*Config) Write

func (lw *Config) Write(p []byte) (int, error)

Write implement io/writer

Jump to

Keyboard shortcuts

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