Subject | Re: [Firebird-Java] Re: log4j directory? |
---|---|
Author | benjohn villedo |
Post date | 2002-07-31T15:06:39Z |
hi there william,
Good Day!!!
thanks for the speedy reply.. i was just able to check
ur suggestion now.. hmm yep i tried ur suggestions but
still got the same error message on Tomcat 4.0 hmm i
would just try to do your suggestions on the linux
box... there might just be something wrong with the
development machine which is on a WinXP operating
system...
will keep u posted though at least u would know how
things turn out :-) once again thanks...
pal,
benjohn
--- "William L. Thomson Jr."
<support@...> wrote:
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Good Day!!!
thanks for the speedy reply.. i was just able to check
ur suggestion now.. hmm yep i tried ur suggestions but
still got the same error message on Tomcat 4.0 hmm i
would just try to do your suggestions on the linux
box... there might just be something wrong with the
development machine which is on a WinXP operating
system...
will keep u posted though at least u would know how
things turn out :-) once again thanks...
pal,
benjohn
--- "William L. Thomson Jr."
<support@...> wrote:
> Benjohn,log4j.appender.fbsql.layout=org.apache.log4j.PatternLayout
>
>
> 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.ConversionPattern=[%c{1},%p]
> > >
> >
>
> > > %m%nlog4j.appender.fbsql.layout=org.apache.log4j.PatternLayout
> > > > 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.ConversionPattern=[%c{1},%p]
> > >
> >
>
> > > %m%n=== message truncated ===
> > > > > > 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)"
> > > > > > >
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com