slf4j is used as a layer and log4j by default is contained in pom.xml if you
use Wicket quickstart.

You can add it manualy:
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <version>1.4.2</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.14</version>
    </dependency>


slf4j usage:


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SomeClass {

  private static final Logger logger =
LoggerFactory.getLogger(SomeClass.class);
  ...
  logger.debug("One value: {}", var0);
  logger.debug("Two values: {}, {}", var0, var1);
  logger.debug("Three values: {}, {}, {}", new Object[] {var0, var1, var2});

}


On Tue, Mar 10, 2009 at 12:25 PM, <[email protected]> wrote:

> Hi,
>
> How to integrate log4j with wicket.
>
> Regards,
> Srinivasa Raju CH.
>
>
> Get your world in your inbox!
>
> Mail, widgets, documents, spreadsheets, organizer and much more with your
> Sifymail WIYI id!
> Log on to http://www.sify.com
>
>
> ********** DISCLAIMER **********
> Information contained and transmitted by this E-MAIL is proprietary to
> Sify Limited and is intended for use only by the individual or entity to
> which it is addressed, and may contain information that is privileged,
> confidential or exempt from disclosure under applicable law. If this is a
> forwarded message, the content of this E-MAIL may not have been sent with
> the authority of the Company. If you are not the intended recipient, an
> agent of the intended recipient or a  person responsible for delivering the
> information to the named recipient,  you are notified that any use,
> distribution, transmission, printing, copying or dissemination of this
> information in any way or in any manner is strictly prohibited. If you have
> received this communication in error, please delete this mail & notify us
> immediately at [email protected]
>
  • log4j srinivas . raju
    • Re: log4j Anton Veretennikov

Reply via email to