• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: log4j questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: log4j questions


  • Subject: Re: log4j questions
  • From: "Sako!" <email@hidden>
  • Date: Fri, 10 Sep 2004 19:58:08 +0200

You start ur application,
You change the level.
No changes happens.
You do that in this sequence?

Sako.

----- Original Message -----
From: "William Hatch" <email@hidden>
To: "Apple WO-Dev" <email@hidden>
Sent: Friday, September 10, 2004 7:41 PM
Subject: log4j questions


> Hi, I'm just converting my logging to log4j and have a few questions.
I've
> created a log4j.properties file and added it to the appserver target.  I
get
> console output as expected, but any changes I make to the properties file
> during run (in development mode) don't seem to change anything;  I'm
> starting simple and tried changing the levels from "info" to "debug" etc,
> but it stays at info no matter what, which leads me to believe that the
> properties file isn't be read.  Here's what I have in the Application
class:
>
> Logger appLogger;
> Appender appAppender;
> SimpleLayout appLayout;
>
> In main of the Application class, I have:
>
> PropertyConfigurator.configure(argv[0]);  //not at all sure about this
here
>
> And then in the Application constructor I have:
>
> //instantiate logger, appender, and layout
> appLayout = new SimpleLayout();
> appAppender = new ConsoleAppender(appLayout);
> AppLogger = Logger.getLogger("appLogger");
> appLogger.addAppender(appAppender);
>
>
> In the log4j.properties file I have (probably wrongly)
>
> log4j.rootAppender=WARN, appAppender
>
> So now the questions:
>
> (1)  I feel like my properties is probably wrong.  If it is, what is
wrong?
>
> (2)  Getting past number 1, how do you change these properties at runtime?
> Using the "Additional Arguments" in Monitor, directly editing the
> .properties file, or some CLI way?
>
> Sorry for the basic questions and thanks for any suggestions.
> --
> William Hatch
> Eng. Visual Media Collection
> Cornell Lab of Ornithology
> Macaulay Library
> Voice (607) 254-2116
> Fax (607) 254-2439
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: log4j questions
      • From: William Hatch <email@hidden>
References: 
 >log4j questions (From: William Hatch <email@hidden>)

  • Prev by Date: Why handlePageRestorationErrorInContext without backtracking?
  • Next by Date: Web form to Email only application?
  • Previous by thread: log4j questions
  • Next by thread: Re: log4j questions
  • Index(es):
    • Date
    • Thread