[[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メソッドのみ記載していますが、実際にはdebug,info,notice,warn,error,crit,alert,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)]]