-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced
DittoLogger
and DittoDiagnosticLoggingAdapter
for maki…
…ng it more easy to enhance log messages with correlation ID than using LogUtil directly. Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
- Loading branch information
Juergen Fickel
committed
Nov 27, 2019
1 parent
9861a5e
commit 21e0ed5
Showing
13 changed files
with
2,697 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...src/main/java/org/eclipse/ditto/services/utils/akka/logging/AutoCloseableSlf4jLogger.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,29 @@ | ||
/* | ||
* Copyright (c) 2019 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.eclipse.ditto.services.utils.akka.logging; | ||
|
||
import javax.annotation.concurrent.NotThreadSafe; | ||
|
||
import org.slf4j.Logger; | ||
|
||
/** | ||
* This interface represents a SLF4J {@link Logger} which additionally is {@link AutoCloseable}. | ||
* The semantic of the {@link #close()} method is defined by its implementation. | ||
*/ | ||
@NotThreadSafe | ||
public interface AutoCloseableSlf4jLogger extends Logger, AutoCloseable { | ||
|
||
@Override | ||
void close(); | ||
|
||
} |
Oops, something went wrong.