I was using the avalon-framework 4.1.4 jar.
It seems Log4JLoggerManager in excalibur-logger-1.0.jar was the culprit
which was using antiquated Category.
I build from the latest avalon-excalibure source tree the
avalon-excaliber.jar and included it in my 4.1alpha phoenix build and
removed the excalibur-looger-1.0.jar from the PHONEIX_HOME/lib directory
to finally get it to work.
There are other excalubr-xxxx.jar in the PHOENIX_HOME/lib directory that
I am sure are being duplicated in the avalon-excalibur.jar but I saw a
thread where they will be removed from the PHOENIX_HOME/lib and will be
SAR specific.
incidently on startup using:
<logs version="log4j">
<appender name="FILE" class="org.apache.log4j.FileAppender">
<param name="File" value="foo.txt"/>
<param name="Append" value="false"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%p - %m%n"/>
</layout>
</appender>
<root>
<priority value="debug"/>
<appender-ref ref="FILE"/>
</root>
</logs>
results in foo.txt ending up in the PHONEIX_HOME/foo.txt directory and
not the PHOENIX_HOME/apps/MyApp/foo.txt directory.
meaning that it is not SAR relative dependant. I haven't yet looked at
further twiking this to see how to deal with it.
Ideally (in my case) it should end up in
PHOENIX_HOME/logs/myapploggfile.log. Using <param name="File"
value="/logs/foo.txt"/>
resulted in FileNotFound excpetion.
regards
k.
On Fri, 2003-03-14 at 11:23, Ole Bulbuk wrote:
> Hi Korosh,
>
> > luckly I am using phoneix latest version. Checked the source
> > and log4j i
> > there in DefaultLogManager.
>
> Yes, thats where it should be inside now. So you needn't change the
> kernel.xml file. :-)
>
> > I didn't underestand exactly what I have to change in kernel.xml since
> > DefaultLogManager seems to be log4j aware.
>
> Thats what we all hope. ;-)
> There have been some changes in that direction but nobody has ever tested
> it.
>
> > I changed the
> > enviornment.xml for my SAR app. I got the following stack trace when
> > starting it up which seems to be tied to the deprecxated Category. I
> > checked the log4j.jar in the lib directory of phoneix and it had the
> > more recent Logger class in it.
> >
> > As you can see I am using Phenix 4.1alpah which should have the latest
> > Log4jLoggerManager stuff and I am assuming using the Logger category.
> > Checking the source I build from, Log4JLogger is using Logger.
> >
> > any ideas?
>
> Yep. org.apache.avalon.framework.logger.Log4JLogger of Avalon framework
> 4.1.3 is still using the old long deprecated Category stuff. Check out the
> brand new Avalon framework 4.1.4. It is usin Logger, Level, etc. :-))
> With that you should be much more successful.
>
> Please report when and *how* you exactly made it in the end (at least the
> environment.xml). This could be interesting for the wiki too.
>
> Good luck,
>
> Ole
> --
> Ernst Basler + Partner GmbH
> Tuchmacherstra�e 47
> 14482 Potsdam
> Tel: (0331) 74 75 9-0
> Direkt: (0331) 74 75 9-60
> Fax: (0331) 74 75 9-90
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]