Skip to content

drobune/goluent

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

goluent

Log mapper of [fluend-logger] (https://github.com/fluent/fluent-logger-golang).

Log style is the same as glog.

All log message print stdout and fluentd with tag goluent.<your hostname>.*.

This is inspired by http://12factor.net/

fluentd configuration

add this

<match goluent.**>
  @type stdout
  @id stdout_output
</match>

How to use

in your *.go file

import (
       log "github.com/drobune/goluent"
)
log.Info("goluent now")
// 2015/07/03 15:33:10 goluent now

log.Errorf("over %v sec", 10)
//2015/07/03 15:37:00 over 10 sec

About

Override standard log library by using fluend-logger https://github.com/fluent/fluent-logger-golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages