<commit_before>#pragma once

#include <fstream>
#include <map>
#include <Utility/cSingletonAble.h>

namespace Log
{
	class cLog
	{
	public:
		cLog(){}

		cLog(const std::string& filename)
		{
			open(filename);
		}

		void open(const std::string& filename);

		void close();

		void writeLog(std::string str);

		std::ofstream fst;

	};
	class cLogManager : public Utility::cSingletonAble<cLogManager>
	{
	public:
		void add(const std::string filename);

		void close();

		void writeLog(const std::string& filename, const std::string& str);

	private:
		std::map<std::string, cLog> logs;
	};

}<commit_msg>Update : LogManagerの使い方を追記<commit_after>#pragma once

#include <fstream>
#include <map>
#include <Utility/cSingletonAble.h>

namespace Log
{
	//! @fn   cLog
	//! @brief Log̓fos܂
	//! @note 
	//!       
	//! @date 2017-11-09
	//! @author <NAME>

	class cLog
	{
	public:
		cLog(){}

		cLog(const std::string& filename)
		{
			open(filename);
		}

		//FileJ܂
		//FileȂ́AIɐ܂
		void open(const std::string& filename);
		
		//File܂
		//ȂĂvǂƕ悤
		void close();

		//Log̓fo
		void writeLog(std::string str);

		std::ofstream fst;

	};
	//! @fn   cLogManager
	//! @brief Log̊Ǘs܂
	//! @note 
	//!       g : 
	//!        ex)
	//!             add("test")
	//!              ->Key -> test Log쐬
	//!                test.logLog/t/̏ꏊɐ܂
	//!
	//!             write("test","")
	//!              -> test.logɁ@""fo܂
	//!           
	//! @date 2017-11-09
	//! @author <NAME>
	class cLogManager : public Utility::cSingletonAble<cLogManager>
	{
	public:
		
		void add(const std::string filename);

		void close();

		void writeLog(const std::string& filename, const std::string& str);

	private:
		std::map<std::string, cLog> logs;
	};

}
{'fraction_non_alphanumeric': 0.1775972141613465, 'fraction_numerical': 0.009286128845037725, 'mean_word_length': 2.6218487394957983, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 18, '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': '5261826', 'n_tokens_mistral': 759, 'n_tokens_neox': 667, 'n_words': 135}