Oops.  -Dlog4j.debug

On 1/3/06, James Stauffer <[EMAIL PROTECTED]> wrote:
> Add -Dlog4h.debug to the command line to get info about how it is
> trying to configure itself.
>
> On 1/3/06, George Sebastian <[EMAIL PROTECTED]> wrote:
> > Hi ,
> > I want to create a new Hierarchy of loggers and I am doing something like
> > this
> >
> >  private static Hierarchy h =new Hierarchy(new RootLogger(Level.DEBUG));
> >    Logger logger =h.getLogger (XX.class.getName ());
> >
> >   PropertyConfigurator.configure(xxxxxx.properties);
> >
> > How do i need to put in the xxxxxx.properties to add an appender  to my
> > rootLogger ( I mean root Logger of my Hierarchy)
> >
> > I added some thing like this and is not working( I mean appender is not
> > added to the root logger and child loggers )
> >
> > log4j.rootLogger=DEBUG , A1
> > log4j.debug=true
> > #A1
> >
> > # A1 is set to be a FileAppender sending its output to
> > # System.out. However, only error messages and above will be printed
> > # in A1 because A1's threshold is set to Level.ERROR.
> >
> > # The fact that the root level is set to Prority.DEBUG only influences
> > # log requests made to the root logger. It has no influence on the
> > # *appenders* attached to root.
> >
> > log4j.appender.A1=com.xx.log4link.appender.MyAppender
> >
> > And while doing so and testing I am getting warning stating no appenders
> > appended with the logger
> > log4j not configured properly
> >
> >
> > Can some one help me to solve this
> >
> > _George Sebastian
> >
> >
>
>
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to