Skip to content

Commit

Permalink
Introduced DittoLogger and DittoDiagnosticLoggingAdapter for maki…
Browse files Browse the repository at this point in the history
…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
Show file tree
Hide file tree
Showing 13 changed files with 2,697 additions and 0 deletions.
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();

}
Loading

0 comments on commit 21e0ed5

Please sign in to comment.