Skip to content

Instantly share code, notes, and snippets.

@lswith
Created April 12, 2015 08:46
Show Gist options
  • Save lswith/e0e56838b1b197b017a1 to your computer and use it in GitHub Desktop.
Save lswith/e0e56838b1b197b017a1 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"github.com/op/go-logging"
"os"
)
var log = logging.MustGetLogger("hello")
func main() {
logging.SetBackend(logging.NewLogBackend(os.Stdout, "", 0))
log.Info("stats.%2A")
fmt.Println("stats.%2A")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment