Interface RewritePolicy

All Known Implementing Classes:
LoggerNameLevelRewritePolicy, MapRewritePolicy, PropertiesRewritePolicy

public interface RewritePolicy
Interface to be implemented by components that support modifications to the LogEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    rewrite(LogEvent source)
    Rewrite a logging event.
  • Method Details

    • rewrite

      LogEvent rewrite(LogEvent source)
      Rewrite a logging event.
      Parameters:
      source - a logging event that may be returned or used to create a new logging event.
      Returns:
      a logging event or null to suppress processing.