PropertyConfigurator only reads property files. To read an xml config you
need to use the DOMConfigurator. Another option would allow log4j to
statically initialize itself (your config file needs to be on the class
path).

On Nov 8, 2007 4:30 PM, <[EMAIL PROTECTED]> wrote:

> Here's my log4j-specific code:
>
>    ...
>    Logger logger = Logger.getLogger("Log4jTest")
>    PropertyConfigurator.configure(args[0])
>
>    logger.debug("debug hello from main!")
>    logger.info("info hello from main")
>    logger.warn("warn hello from main")
>    logger.error("error hello from main")
>    logger.fatal("fatal hello from main")
>

Reply via email to