logstash/src/main/java/com/tersesystems/echopraxia/logstash/LogstashCoreLogger.java
/**
   * Returns a core logger with a context containing a LogstashCallerMarker with the caller data
   * needed for the logging event.
   *
   * @return the core logger.
   */
Returns a core logger with a context containing a LogstashCallerMarker with the caller data
needed for the logging event.

@return the core logger.
Returns a core logger with a context containing a LogstashCallerMarker with the caller data needed for the logging event . @return the core logger .
@NotNull
  protected LogstashCoreLogger asyncCallerLogger() {
    if (isAsyncCallerEnabled()) {
      LogstashCallerMarker callerMarker = new LogstashCallerMarker(fqcn, new Throwable());
      LogstashLoggingContext callerContext =
          new LogstashLoggingContext(
              Collections::emptyList, () -> Collections.singletonList(callerMarker));
      final LogstashLoggingContext contextWithCaller = context.and(callerContext);
      return new LogstashCoreLogger(
          fqcn, logger, contextWithCaller, condition, executor, threadContextFunction);
    } else {
      return this;
    }
  }
@ NotNull protected LogstashCoreLogger asyncCallerLogger ( ) { if ( isAsyncCallerEnabled ( ) ) { LogstashCallerMarker callerMarker = new LogstashCallerMarker ( fqcn , new Throwable ( ) ) ; LogstashLoggingContext callerContext = new LogstashLoggingContext ( Collections :: emptyList , ( ) -> Collections . singletonList ( callerMarker ) ) ; final LogstashLoggingContext contextWithCaller = context . and ( callerContext ) ; return new LogstashCoreLogger ( fqcn , logger , contextWithCaller , condition , executor , threadContextFunction ) ; } else { return this ; } }
Returns a core logger with a context containing a LogstashCallerMarker with the caller data
 needed for the logging event.
Returns a core logger with a context containing a LogstashCallerMarker with the caller data needed for the logging event .