<commit_before>#pragma once

#include "ofLog.h"
#include "ofxLog4Cpp.h"
#include "log4cpp/HierarchyMaintainer.hh"

class ofxLog4CppChannel: public ofBaseLoggerChannel{
public:
	enum LogFormat{
		DEFAULT,
		JSON,
		NONE,
		RAW,
		BASIC
	};
	ofxLog4CppChannel(/*LogFormat forConsole = LogFormat::DEFAULT, LogFormat forFile = LogFormat::NONE*/);
	virtual ~ofxLog4CppChannel();

	void log(ofLogLevel level, const string & module, const string & message);
	void log(ofLogLevel level, const string & module, const char* format, ...);
	void log(ofLogLevel level, const string & module, const char* format, va_list args);

	void close();

private:
	log4cpp::Category& root;
	log4cpp::Priority::Value of2l4c(ofLogLevel level){
		switch (level){
		case ofLogLevel::OF_LOG_ERROR:
			return log4cpp::Priority::ERROR;
		case ofLogLevel::OF_LOG_FATAL_ERROR:
			return log4cpp::Priority::FATAL;
		case ofLogLevel::OF_LOG_SILENT:
			return log4cpp::Priority::EMERG;
		case ofLogLevel::OF_LOG_VERBOSE:
			return log4cpp::Priority::NOTSET;
		case ofLogLevel::OF_LOG_WARNING:
			return log4cpp::Priority::WARN;
		case ofLogLevel::OF_LOG_NOTICE:
		default:
			return log4cpp::Priority::INFO;
		}
	}
};<commit_msg>Upgraded OF_LOG_VERBOSE to log4cpp's DEBUG<commit_after>#pragma once

#include "ofLog.h"
#include "ofxLog4Cpp.h"
#include "log4cpp/HierarchyMaintainer.hh"

class ofxLog4CppChannel: public ofBaseLoggerChannel{
public:
	enum LogFormat{
		DEFAULT,
		JSON,
		NONE,
		RAW,
		BASIC
	};
	ofxLog4CppChannel(/*LogFormat forConsole = LogFormat::DEFAULT, LogFormat forFile = LogFormat::NONE*/);
	virtual ~ofxLog4CppChannel();

	void log(ofLogLevel level, const string & module, const string & message);
	void log(ofLogLevel level, const string & module, const char* format, ...);
	void log(ofLogLevel level, const string & module, const char* format, va_list args);

	void close();

private:
	log4cpp::Category& root;
	log4cpp::Priority::Value of2l4c(ofLogLevel level){
		switch (level){
		case ofLogLevel::OF_LOG_ERROR:
			return log4cpp::Priority::ERROR;
		case ofLogLevel::OF_LOG_FATAL_ERROR:
			return log4cpp::Priority::FATAL;
		case ofLogLevel::OF_LOG_SILENT:
			return log4cpp::Priority::EMERG;
		case ofLogLevel::OF_LOG_VERBOSE:
			return log4cpp::Priority::DEBUG;
		case ofLogLevel::OF_LOG_WARNING:
			return log4cpp::Priority::WARN;
		case ofLogLevel::OF_LOG_NOTICE:
		default:
			return log4cpp::Priority::INFO;
		}
	}
};
{'fraction_non_alphanumeric': 0.11806130903065451, 'fraction_numerical': 0.01284175642087821, 'mean_word_length': 5.880341880341881, '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': '5075043', 'n_tokens_mistral': 919, 'n_tokens_neox': 865, 'n_words': 188}