Hello,
it seems that I am still missing something in my logger configuration,
since any log output is in the category "fortress" although I tried to
define a lot of other categories in my config files. The xlog is just
the same as ion the examples:
========== .xlog ===========
<logkit>
<factories>
<factory type="file"
class="org.apache.avalon.excalibur.logger.factory.FileTargetFactory"/>
</factories>
<targets>
<file id="root">
<filename>/temp/logs/gnf.log</filename>
<format type="extended">
%7.7{priority} %5.5{time} [%8.8{category}] (%{context}):
%{message}\n%{throwable}
</format>
</file>
</targets>
<categories>
<category name="" log-level="DEBUG">
<log-target id-ref="root"/>
</category>
</categories>
</logkit>
============================
In the xconf I tried to introduce new categories as shown in the
following snippet:
========== .xlog ===========
<GNF>
<BlobView id="_Blob" logger="view.blob" />
<ImageView id="_Img" logger="view.image" />
<NaviInfoView id="_NaviInfo" logger="view.naviinfo" />
<NDIBrowserView id="_NDIBrowser" logger="view.ndibrowser" authorOnly="1" />
<ParEditView id="_ParEdit" logger="view.paredit" authorOnly="1" />
<ResourceView id="_Res" logger="view.resource" authorOnly="1"
location="demo/resources/"/>
<SpiderView id="_Spider" logger="view.spider" />
<SysPropView id="_SysProp" logger="view.sysprop" authorOnly="1" />
<TestView id="_Test" logger="view.test" />
<TextImgView id="_TxtImg" logger="view.textimg" />
</GNF>
============================
But instead of having some kind of "view" category in the log,
anything is in the Fortress category:
========== .log ============
DEBUG 10482 [fortress] (): Component demo.kernel.view.BlobGNFView uses handler
org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler
DEBUG 10482 [fortress] (): Logger for category fortress.system.factory not defined
in configuration. New Logger created and returned
DEBUG 10482 [fortress] (): no name attribute available, using standard name
DEBUG 10482 [fortress] (): Logger for category fortress.system.handler.threadsafe
not defined in configuration. New Logger created and returned
DEBUG 10482 [fortress] (): Component demo.kernel.view.ImageGNFView uses handler
org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler
DEBUG 10482 [fortress] (): Logger for category fortress.system.factory not defined
in configuration. New Logger created and returned
DEBUG 10482 [fortress] (): no name attribute available, using standard name
DEBUG 10482 [fortress] (): Logger for category fortress.system.handler.threadsafe
not defined in configuration. New Logger created and returned
[...]
INFO 10482 [fortress] (): No delay for page factory garbage collection, use "10"
seconds as default
============================
Unfortunately I found no description of the xlog and xconf files
and the mapping of the attributes used to control LogKit.
Regards,
J�rg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]