[[PageNavi(NavigationList)]] === クラス構成(概念的なもの) === Log4cppのクラス構成(概念的なもの)です。正確には若干違いますが、Log4cppを理解し、使用するためであれば、これで十分だと思います。[[BR]] また、Log4cppには内部的なクラスがありますが、Log4cppを理解し、使用するためだけれあれば、それらは知る必要はありませんからここでは触れていません。[[BR]] [[Thumb(classStructure.jpg, size=large, caption=クラス構成)]] === 各クラスの概要 === * [http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html Category(カテゴリ)][[BR]] Log4cppのCategoryクラスはLog4cppの中心的なクラスです。[[BR]] (注:Log4j 1.2では、Categoryクラスは非推奨となっています。代わりにLoggerクラスにとって変えられています。)[[BR]] また、このクラスはログ出力用のメソッドを持ちます。上のクラス図ではlogメソッドのみ記載していますが、実際には[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#aafa1ca0c9d57f9f87eae8628e89c5950 debug],[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#ad218a5e279fc9b15a076bf62503f37b4 info],[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#a5a4ba8063d108e275affa4aca5aec4ef notice],[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#a9c372f41858234fe5ab0cfe94cfdb94a warn],[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#a90d7771a3113219532878f1fea554afe error],[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#acf854aca1676ede517914bf5185fc36d crit],[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#aca8a704d6397ac3a4300966a6142460c alert],[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#a3663faf2ad6873c3da8cdfef5780277a emerg],[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Category.html#a249d46ce876a4af55a25226255e626fa fatal]といった優先度に応じたメソッドもあります。[[BR]] * [http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Priority.html Priority(優先度)][[BR]] ログ出力時の優先度を表します。[[BR]] * [http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Appender.html Appender(アペンダー)][[BR]] 出力先です。サブクラスとして[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1RollingFileAppender.html RollingFileAppender]、[http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1SyslogAppender.html SyslogAppender]などがあります。[[BR]] * [http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Filter.html Filter(フィルター)] * [http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1Layout.html Layout(レイアウト)] * [http://log4cpp-jp.sourceforge.jp/api/classlog4cpp_1_1NDC.html NDC(ネスト化診断コンテキスト)] [[PageNavi(NavigationList)]]