Interface LogOutputRegistry

All Superinterfaces:
LogOutput.OutputProvider

public sealed interface LogOutputRegistry extends LogOutput.OutputProvider
Register output providers by URI scheme.
  • Field Details

  • Method Details

    • register

      void register(String scheme, LogOutput.OutputProvider provider)
      Register a provider by scheme.
      Parameters:
      scheme - URI scheme to match for.
      provider - provider for scheme.
    • output

      Finds an output by name.
      Parameters:
      name - output name.
      Returns:
      maybe an output.
    • reopen

      Attempts to reopen all outputs of a certain type usually for log rotation. This call will block if it attempts to reopen. If reopening is already happening an empty list will be returned.
      Returns:
      the output status of reopened outputs or an empty list if no outputs were reopened.
    • flush

      Attempts to flush all outputs usually for log rotation. This call will block if it attempts to flush. If flush is already happening an empty list will be returned.
      Returns:
      the output status of reopened outputs or an empty list if no outputs were reopened.
    • status

      Will retrieve the status of all outputs usually for health checking.
      Returns:
      list of status of outputs.