Here you can find the source of logWarningWithDebugDetails(Logger logger, Throwable t, String message, Object... values)
Parameter | Description |
---|---|
logger | the logged used to log the message. |
t | the corresponding throwable. |
message | the message. |
values | the values associated with the message. |
public static void logWarningWithDebugDetails(Logger logger, Throwable t, String message, Object... values)
//package com.java2s; /**/*from w ww. j ava 2 s . c om*/ * Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import org.slf4j.Logger; public class Main { /** * Log a warning message with the corresponding throwable being logged at debug level. * * @param logger the logged used to log the message. * @param t the corresponding throwable. * @param message the message. * @param values the values associated with the message. */ public static void logWarningWithDebugDetails(Logger logger, Throwable t, String message, Object... values) { logger.warn(String.format("%s (details at debug level)", message), values); logger.debug("Stacktrace of the preceding warning", t); } }