<commit_before>package main

import (
	"github.com/scale-it/go-log"
	"os"
)

var Log = log.New()

func main() {
	//Log.AddOutput(os.Stdout, clog.LevelWarning)
	Log.AddOutput(os.Stderr, log.Levels.Info, log.StdFormatter{"root ", log.Lshortfile, false})
	Log.AddOutput(os.Stderr, log.Levels.Info, log.StdFormatter{"with time", log.Lshortfile | log.Ldate | log.Ltime, false})
	x := 1.23
	Log.Info("x is %v", x)
	Log.Debug("This won't be printed")

	Log = log.NewStd(os.Stderr, log.Levels.Debug, "", log.Ldate|log.Lmicroseconds, true)
	Log.Debug("some message")
	Log.Info("some message")
	Log.Warning("some message")
	Log.Error("some message")
	Log.Fatal("some message")
}<commit_msg>Better prefix name in example<commit_after>package main

import (
	"github.com/scale-it/go-log"
	"os"
)

var Log = log.New()

func main() {
	//Log.AddOutput(os.Stdout, clog.LevelWarning)
	Log.AddOutput(os.Stderr, log.Levels.Info, log.StdFormatter{"[root]", log.Lshortfile, false})
	Log.AddOutput(os.Stderr, log.Levels.Info, log.StdFormatter{"[with time]", log.Lshortfile | log.Ldate | log.Ltime, false})
	x := 1.23
	Log.Error("x is %v", x)
	Log.Debug("This won't be printed")

	Log = log.NewStd(os.Stderr, log.Levels.Debug, "", log.Ldate|log.Lmicroseconds, true)
	Log.Debug("some message")
	Log.Info("some message")
	Log.Warning("some message")
	Log.Error("some message")
	Log.Fatal("some message")
}
{'fraction_non_alphanumeric': 0.18115942028985507, 'fraction_numerical': 0.004347826086956522, 'mean_word_length': 4.802521008403361, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2802953', 'n_tokens_mistral': 552, 'n_tokens_neox': 529, 'n_words': 104}