日志类是怎么用的?
我写的如下代码时;
public class DialogPanel extends JPanel
{
static final Logger LOG = Logger.getLogger(DialogPanel.class.getName());
public DialogPanel()
{
super();
if(LOG.isEnabledFor(Level.DEBUG))
{
LOG.debug("Begin DialogPanel() constructor");
}
}
}
会有错误提示:
log4j:WARN No appenders could be found for logger (DialogPanel).
log4j:WARN Please initialize the log4j system properly.
是不是要设置什么东西啊?