- All Superinterfaces:
LogOutput.OutputProvider
Register output providers by URI scheme.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionflush()Attempts to flush all outputs usually for log rotation.Finds an output by name.voidregister(String scheme, LogOutput.OutputProvider provider) Register a provider byscheme.reopen()Attempts to reopen all outputs of a certain type usually for log rotation.status()Will retrieve the status of all outputs usually for health checking.Methods inherited from interface io.jstach.rainbowgum.LogOutput.OutputProvider
provide
-
Field Details
-
NAMED_OUTPUT_SCHEME
A meta URI scheme to reference outputs registered somewhere else.- See Also:
-
LIST_OUTPUT_SCHEME
The URI scheme for list provider.- See Also:
-
-
Method Details
-
register
Register a provider byscheme.- 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
List<LogResponse> 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.
-