DefaultDittoDiagnosticLoggingAdapter extends DittoDiagnosticLoggingAdapter { public static DefaultDittoDiagnosticLoggingAdapter of(final DiagnosticLoggingAdapter diagnosticLoggingAdapter, final CharSequence loggerName) { final DefaultDiagnosticLoggingAdapter loggingAdapter = DefaultDiagnosticLoggingAdapter.of(diagnosticLoggingAdapter, loggerName); return new DefaultDittoDiagnosticLoggingAdapter(loggingAdapter, AutoDiscardingDiagnosticLoggingAdapter.of(loggingAdapter)); } private  DefaultDittoDiagnosticLoggingAdapter(final AbstractDiagnosticLoggingAdapter loggingAdapter,
            final AbstractDiagnosticLoggingAdapter autoDiscardingLoggingAdapter); static DefaultDittoDiagnosticLoggingAdapter of(final DiagnosticLoggingAdapter diagnosticLoggingAdapter,
            final CharSequence loggerName); @Override DefaultDittoDiagnosticLoggingAdapter withCorrelationId(@Nullable final CharSequence correlationId); @Override DefaultDittoDiagnosticLoggingAdapter withCorrelationId(final WithDittoHeaders withDittoHeaders); @Override DefaultDittoDiagnosticLoggingAdapter withCorrelationId(final DittoHeaders dittoHeaders); @Override DefaultDittoDiagnosticLoggingAdapter setCorrelationId(@Nullable final CharSequence correlationId); @Override DefaultDittoDiagnosticLoggingAdapter setCorrelationId(final WithDittoHeaders withDittoHeaders); @Override DefaultDittoDiagnosticLoggingAdapter setCorrelationId(final DittoHeaders dittoHeaders); @Override void discardCorrelationId(); @Override DefaultDittoDiagnosticLoggingAdapter setMdcEntry(final CharSequence key,
            @Nullable final CharSequence value); @Override DefaultDittoDiagnosticLoggingAdapter setMdcEntries(final CharSequence k1, @Nullable final CharSequence v1,
            final CharSequence k2, @Nullable final CharSequence v2); @Override DefaultDittoDiagnosticLoggingAdapter setMdcEntries(final CharSequence k1, @Nullable final CharSequence v1,
            final CharSequence k2, @Nullable final CharSequence v2,
            final CharSequence k3, @Nullable final CharSequence v3); @Override void discardMdcEntry(final CharSequence key); @Override DefaultDittoDiagnosticLoggingAdapter setMdcEntry(final MdcEntry mdcEntry,
            final Seq<MdcEntry> furtherMdcEntries); @Override DefaultDittoDiagnosticLoggingAdapter setMdcEntry(final MdcEntry mdcEntry,
            final MdcEntry... furtherMdcEntries); @Override DefaultDittoDiagnosticLoggingAdapter putMdcEntry(final CharSequence key,
            @Nullable final CharSequence value); @Override DefaultDittoDiagnosticLoggingAdapter withMdcEntry(final CharSequence key,
            @Nullable final CharSequence value); @Override DefaultDittoDiagnosticLoggingAdapter withMdcEntries(final CharSequence k1, @Nullable final CharSequence v1,
            final CharSequence k2, @Nullable final CharSequence v2); @Override DefaultDittoDiagnosticLoggingAdapter withMdcEntries(final CharSequence k1, @Nullable final CharSequence v1,
            final CharSequence k2, @Nullable final CharSequence v2,
            final CharSequence k3, @Nullable final CharSequence v3); @Override DittoDiagnosticLoggingAdapter withMdcEntry(final MdcEntry mdcEntry, final MdcEntry... furtherMdcEntries); @Override DefaultDittoDiagnosticLoggingAdapter withMdcEntry(final MdcEntry mdcEntry,
            final Seq<MdcEntry> furtherMdcEntries); @Override DefaultDittoDiagnosticLoggingAdapter removeMdcEntry(final CharSequence key); @Override DefaultDittoDiagnosticLoggingAdapter discardMdcEntries(); @Override String getName(); @Override boolean isErrorEnabled(); @Override boolean isWarningEnabled(); @Override boolean isInfoEnabled(); @Override boolean isDebugEnabled(); @Override void notifyError(final String message); @Override void notifyError(final Throwable cause, final String message); @Override void notifyWarning(final String message); @Override void notifyInfo(final String message); @Override void notifyDebug(final String message); @Override scala.collection.immutable.Map<String, Object> mdc(); @Override void mdc(final scala.collection.immutable.Map<String, Object> mdc); @Override Map<String, Object> getMDC(); @Override void setMDC(final Map<String, Object> jMdc); @Override void clearMDC();  }
@Test public void getInstanceWithNullLogger() { assertThatNullPointerException() .isThrownBy(() -> DefaultDittoDiagnosticLoggingAdapter.of(null, LOGGER_NAME)) .withMessage("The loggingAdapter must not be null!") .withNoCause(); }
@Test public void getInstanceWithNullLoggerName() { assertThatNullPointerException() .isThrownBy(() -> DefaultDittoDiagnosticLoggingAdapter.of(plainLoggingAdapter, null)) .withMessage("The loggerName must not be null!") .withNoCause(); }
@Test public void getInstanceWithBlankLoggerName() { assertThatIllegalArgumentException() .isThrownBy(() -> DefaultDittoDiagnosticLoggingAdapter.of(plainLoggingAdapter, "")) .withMessage("The argument 'loggerName' must not be empty!") .withNoCause(); }