package com.srbenoit.log;

import java.awt.LayoutManager;
import java.util.logging.Logger;
import javax.swing.JPanel;

/**
 * A panel that includes a static logger to which diagnostic messages can be logged.
 */
public class LoggedPanel extends JPanel {

    /** version number for serialization */
    private static final long serialVersionUID = -9154069273727941925L;

    /** a log to which to write diagnostic messages */
    protected static final Logger LOG;

    static {
        LOG = LogMgr.getLogger();
    }

    /**
     * Constructs a new <code>LoggedPanel</code>.
     */
    protected LoggedPanel() {

        super();
    }

    /**
     * Constructs a new <code>LoggedPanel</code> with the specified layout manager.
     *
     * @param  layout  the <code>LayoutManager</codE> to use
     */
    protected LoggedPanel(final LayoutManager layout) {

        super(layout);
    }
}
