<commit_before>// Package: example
// File: example.go
// Created by: mint(<EMAIL>)_aiwuTech
// Useage: example
// DATE: 14-8-24 14:08
package main

import (
	"github.com/aiwuTech/fileLogger"
	"sync"
)

var (
	logFile *fileLogger.FileLogger
	TRACE   *fileLogger.FileLogger
	INFO    *fileLogger.FileLogger
	WARN    *fileLogger.FileLogger
	ERROR   *fileLogger.FileLogger
)

func init() {

	TRACE = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "trace.log")
	INFO = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "info.log")
	WARN = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "warn.log")
	ERROR = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "error.log")

	TRACE.SetPrefix("[TRACE] ")
	INFO.SetPrefix("[INFO] ")
	WARN.SetPrefix("[WARN] ")
	ERROR.SetPrefix("[ERROR] ")

	logFile = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "test.log")
	logFile.SetLogLevel(fileLogger.TRACE) //trace log will not be print
}

func main() {

	wg := new(sync.WaitGroup)

	wg.Add(1)
	go traceTest(wg)

	wg.Add(1)
	go infoTest(wg)<commit_msg>update example<commit_after>// Package: example
// File: example.go
// Created by: mint(<EMAIL>)_aiwuTech
// Useage: example
// DATE: 14-8-24 14:08
package main

import (
	"github.com/aiwuTech/fileLogger"
	"sync"
)

var (
	logFile *fileLogger.FileLogger
	TRACE   *fileLogger.FileLogger
	INFO    *fileLogger.FileLogger
	WARN    *fileLogger.FileLogger
	ERROR   *fileLogger.FileLogger
)

func init() {

	TRACE = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "trace.log")
	INFO = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "info.log")
	WARN = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "warn.log")
	ERROR = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "error.log")

	TRACE.SetPrefix("[TRACE] ")
	INFO.SetPrefix("[INFO] ")
	WARN.SetPrefix("[WARN] ")
	ERROR.SetPrefix("[ERROR] ")

	logFile = fileLogger.NewDefaultLogger("/usr/local/aiwuTech/log", "test.log")
	logFile.SetLogLevel(fileLogger.INFO) //trace log will not be print
}

func main() {

	wg := new(sync.WaitGroup)

	wg.Add(1)
	go traceTest(wg)

	wg.Add(1)
	go infoTest(wg)
{'fraction_non_alphanumeric': 0.16213683223992503, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 4.559895833333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4249189', 'n_tokens_mistral': 836, 'n_tokens_neox': 776, 'n_words': 134}