Example usage for com.liferay.portal.kernel.log Log warn

List of usage examples for com.liferay.portal.kernel.log Log warn

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.log Log warn.

Prototype

public void warn(Throwable t);

Source Link

Usage

From source file:pt.knowledgeworks.liferay.ext.event.ContainerLogoutAction.java

License:Open Source License

@Override
public void run(HttpServletRequest req, HttpServletResponse res) throws ActionException {
    try {/*  w w w .j a v  a  2 s. c  o m*/
        req.logout();
    } catch (ServletException ex) {
        final Log log = LogFactoryUtil.getLog(ContainerLogoutAction.class);
        final String msg = "CAUTH0020: Unxpected error while performing logout";
        log.warn(msg + " :: " + ex);
        if (log.isTraceEnabled()) {
            log.trace(msg, ex);
        }
    }
}