<commit_before>package logger

import "testing"

func TestNewXLog(t *testing.T) {
	log := newXLog(&Config{
		Level: LevelDebug,
	})
	if log == nil {
		t.Error("Got uninitialized XLog logger")
	}
}<commit_msg>Added test for output types<commit_after>package logger

import (
	"os"
	"testing"
)

func TestNewXLog(t *testing.T) {
	log1 := newXLog(&Config{
		Level: LevelDebug,
	})
	if log1 == nil {
		t.Error("Got uninitialized XLog logger")
	}
	log2 := newXLog(&Config{
		Level: LevelInfo,
		Out:   os.Stdout,
		Err:   os.Stdout,
	})
	if log2 == nil {
		t.Error("Got uninitialized XLog logger")
	}
}
{'fraction_non_alphanumeric': 0.1440536013400335, 'fraction_numerical': 0.006700167504187605, 'mean_word_length': 3.9421487603305785, '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': '5360243', 'n_tokens_mistral': 245, 'n_tokens_neox': 235, 'n_words': 56}