Jan Stary wrote:
> :public void initialize() throws Exception {
> : org.apache.log.Logger logger = Hierarchy.getDefaultHierarchy().
> : getLoggerFor("document");
> :
> : DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
> : Configuration sysConfig = builder.buildFromFile(
> : "/home/hans/casopis/system.xml");
> : Configuration roleConfig =
> : builder.build(this.getClass().getClassLoader().getResourceAsStream(
> : "/home/hans/casopis/document.roles"));
> : DefaultRoleManager roles = new DefaultRoleManager();
> :
> : roles.enableLogging(new LogKitLogger( logger ));
> :
> : roles.configure(roleConfig);
> :
> : this.manager.setLogger(logger);
> :
> : this.manager.contextualize(new DefaultContext());
> : this.manager.setRoleManager(roles);
> : this.manager.configure(sysConfig);
> : this.manager.initialize();
> :}
>
> Well ... this doesn't compile (cannot resolve symbol LogKitLogger)
> - looking into org/apache/log, there is really no LogKitLogger,
> and it doesn't compile with
> new LogKit(logger)
> neither
>
> It logkit.jar that comes vith excalibur 4.0b4
Try org.apache.avalon.framework.logger.LogKitLogger
That is where the new Logger abstraction stuff is.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>