slf4go_native_adaptor

package module
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 7 Imported by: 0

README

Go Report Card Coverage Status Build Status

Native adaptor for SLF4GO

This is a simplest adaptor implementation for Simple Logging Facade for Go, it uses the native logging implementation from the "log" package.

An example usage is stupid simple:


package main

import (
	"github.com/aellwein/slf4go"
	_ "github.com/aellwein/slf4go-native-adaptor"
)

func main() {
    logger := slf4go.GetLogger("mylogger")
    logger.Info("It works!")
    logger.Warnf("The answer is %d", 42)
}

Note the underscore in front of the import of the SLF4GO adaptor.

You can change the logger implementation anytime, without changing the facade you are using, only by changing the imported adaptor.

Logging parameters

None supported.

Development

  • use go build ./... as usual.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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