core/play/src/main/java/play/Logger.java
@Deprecated
  public static void warn(String message, Throwable error) {
    logger.warn(message, error);
  }
@Deprecated
  public static void warn(String message, Throwable error) {
    logger.warn(message, error);
  }
@ Deprecated public static void warn ( String message , Throwable error ) { logger . warn ( message , error ) ; }
Log a message with the WARN level.

@param message message to log
@param error associated exception
@deprecated Deprecated as of 2.7.0. Create an instance of {@link ALogger} via {@link
#of(String)} / {@link #of(Class)} and use the same-named method. Or use SLF4J directly.
Log a message with the WARN level .