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

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

Introduction

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

Prototype

public void trace(Object msg, 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 {/*from   w w  w . j ava2  s  . c  om*/
        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);
        }
    }
}