-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #4572 - Adding missing bridge API for Log to slf4j
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
jetty-util/src/main/java/org/eclipse/jetty/util/log/Log.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// | ||
// ======================================================================== | ||
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others. | ||
// | ||
// This program and the accompanying materials are made available under | ||
// the terms of the Eclipse Public License 2.0 which is available at | ||
// https://www.eclipse.org/legal/epl-2.0 | ||
// | ||
// This Source Code may also be made available under the following | ||
// Secondary Licenses when the conditions for such availability set | ||
// forth in the Eclipse Public License, v. 2.0 are satisfied: | ||
// the Apache License v2.0 which is available at | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
// ======================================================================== | ||
// | ||
|
||
package org.eclipse.jetty.util.log; | ||
|
||
import org.slf4j.LoggerFactory; | ||
|
||
/** | ||
* Legacy bridge API to Slf4j | ||
* | ||
* @deprecated | ||
*/ | ||
@Deprecated | ||
public class Log | ||
{ | ||
@Deprecated | ||
public static final String EXCEPTION = "EXCEPTION"; | ||
|
||
@Deprecated | ||
public static Logger getLogger(Class<?> clazz) | ||
{ | ||
return new Logger(LoggerFactory.getLogger(clazz)); | ||
} | ||
|
||
@Deprecated | ||
public static Logger getLogger(String name) | ||
{ | ||
return new Logger(LoggerFactory.getLogger(name)); | ||
} | ||
|
||
@Deprecated | ||
public static Logger getRootLogger() | ||
{ | ||
return new Logger(LoggerFactory.getLogger("")); | ||
} | ||
} |