Subject Re: [Firebird-Java] Re: log4j directory? William L. Thomson Jr. 2002-07-29T01:32:38Z
Benjohn,

On Sun, 2002-07-28 at 18:22, benjohn villedo wrote:
> hi there william,
>
> Good Day!!!
>
> i tried your suggestion re /log/test.log placed it
> almost everywhere hehehe but i still got the same
> error messages once i startup tomcat
>
> i also checked the log4j-core.jar and couldn't find
> any log4j.properties file so this portion of ur
> suggestion was not followed through..

Wrong jar buddy. I meant the firebirdsql.jar, and you usually will
create the log/test.log in the same dir that the firebirdsql.jar is in.

Sorry for not clarifying that the first time.

> as a solution i temporarily took off log4j-core.jar
> from \$CATALINA_HOME/common/lib
>
> so question ... should i consider that move the
> permanent fix??

If you do not care about logging. Are you using Tomcat or not? If you
are you will want to place a log4j.properties file in each
WEB-INF/classes dir for each webapp. If you are not using Tomcat, edit
the one inside the firebirdsql.jar file. Or do both. :)

There is also a command line arg to turn logging on which is off by
default.

-DFBLog4j=true for on, or
-DFBLog4j=false for off, the default.

> thanks a lot for the attention :-)

No problem.

> pal,
> benjohn
>
>
>
> --- "William L. Thomson Jr."
> <support@...> wrote:
> > On Fri, 2002-07-26 at 00:14, benjohnpv wrote:
> > > i tried this and placed it all around my folders
> > but i still get the
> > > same error...
> > >
> > > oh by the way i am trying to run it on windows..
> > is there any special
> > > instruction included to it??
> >
> > Ah, I did not realize that or it was not mentioned.
> > In that case try
> > creating a log dir in the folder that the
> > log4j-core.jar is in, and see
> > if the test.log ends up in that. If not create the
> > dir in the directory
> > of the app that is using the driver.
> >
> > Also if you do not care about logging explicitly
> > turn it off as you
> > start your app via -DFBLog4j=false
> >
> > Also try to place the log4j.properties file next to
> > the log4j-core.jar
> > to see if that helps it to be read.
> >
> > I believe there is also one in the jar file itself
> > that you can modify.
> > Just open up the jar with winzip and modify the prop
> > file in it if you
> > do want logging.
> >
> > Good luck hope that helps.
> >
> > > here is the content of my log4j.properties
> > >
> > > log4j.category.org.firebirdsql=debug,fbsql
> > >
> > > log4j.appender.fbsql=org.apache.log4j.FileAppender
> > > log4j.appender.fbsql.File=C:\Program Files\Apache
> > Tomcat 4.0
> > > \logs\firebirdsql.log
> > >
> >
> log4j.appender.fbsql.layout=org.apache.log4j.PatternLayout
> > >
> >
> log4j.appender.fbsql.layout.ConversionPattern=[%c{1},%p]
> > %m%n
> > > log4j.appender.Dfbsql.Append=true
> > >
> > > for the meantime i took the log4j-core.jar file
> > off to avoid the
> > > errors, is this recommended?? what should be done
> > for a fix??
> > >
> > > all fixes welcomed :-)
> > >
> > > pal,
> > > benjohn
> > >
> > >
> > > --- In Firebird-Java@y..., "Rick Fincher"
> > <rnf@t...> wrote:
> > > > Thanks William,
> > > >
> > > > That should help sort out stuff. Just using
> > -DFBLog4j=true results
> > > in all
> > > > the calls to all the webapps being mixed in the
> > logs/log/test.log
> > > file.
> > > >
> > > > Rick
> > > >
> > > > > You need to create a log4j.properties file and
> > put it in each of
> > > your
> > > > > web apps WEB-INF/classes folder or one of the
> > global Tomcat
> > > classes
> > > > > folder.
> > > > >
> > > > > Here is what should be in it
> > > > >
> > > > > log4j.category.org.firebirdsql=debug,fbsql
> > > > >
> > > > >
> > log4j.appender.fbsql=org.apache.log4j.FileAppender
> > > > >
> > log4j.appender.fbsql.File=/var/log/firebirdsql.log
> > > > >
> >
> log4j.appender.fbsql.layout=org.apache.log4j.PatternLayout
> > > > >
> >
> log4j.appender.fbsql.layout.ConversionPattern=[%c{1},%p]
> > %m%n
> > > > > log4j.appender.Dfbsql.Append=true
> > > > >
> > > > > You may want to change the first line, debug
> > to error or fatal.
> > > > >
> > > > >
> > > > > On Mon, 2002-07-22 at 12:54, Rick Fincher
> > wrote:
> > > > > > Hi All,
> > > > > >
> > > > > > Did anybody get log4j in the driver running
> > with Tomcat?
> > > > > >
> > > > > > I've been trying to use it by putting
> > -DFBLog4j=true in the
> > > startup
> > > > script
> > > > > > but I keep getting "FileNotFoundException:
> > log/test.log (No
> > > such file or
> > > > > > directory)"
> > > > > >
> > > > > > I've put /log directories in several places
> > with no luck.
> > > > > >
> > > > > > Anybody know where it goes?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Rick
> > > > > >
> > > > > >
> > > > > >
> > > > > > To unsubscribe from this group, send an
> > email to:
> > > > > > Firebird-Java-unsubscribe@y...
> > > > > >
> > > > > >
> > > > > >
> > > > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > > > >
> > > > > >
> > > > > --
> > > > > Sincerely,
> > > > > William L. Thomson Jr.
> > > > > Support Group
> > > > > Obsidian-Studios Inc.
> > > > > 439 Amber Way
> > > > > Petaluma, Ca. 94952
> > > > > Phone 707.766.9509
> > > > > Fax 707.766.8989
> > > > > http://www.obsidian-studios.com
> > > > >
> > > > >
> > > > >
> > > > > To unsubscribe from this group, send an email
> > to:
> > > > > Firebird-Java-unsubscribe@y...
> > > > >
> > > > >
> > > > >
> > > > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
> > > To unsubscribe from this group, send an email to:
> > > Firebird-Java-unsubscribe@yahoogroups.com
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > >
> > >
> > --
> > Sincerely,
> > William L. Thomson Jr.
> > Support Group
> > Obsidian-Studios Inc.
> > 439 Amber Way
> > Petaluma, Ca. 94952
> > Phone 707.766.9509
> > Fax 707.766.8989
> > http://www.obsidian-studios.com
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
--
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios Inc.
439 Amber Way
Petaluma, Ca. 94952
Phone 707.766.9509
Fax 707.766.8989
http://www.obsidian-studios.com