Beta Registers a new handler with the factory
The handler will receive all future log entries from all loggers (both existing and newly created). Historical logs are not replayed.
The handler to register
Clears logs from all handlers that support storage
This method clears logs from all handlers that implement LogStore. Handlers that don't support clearing (like console) are ignored.
Retrieves logs from all handlers that support storage
This method aggregates logs from all handlers that implement LogStore. Handlers that don't support log retrieval (like console) are ignored.
Array of all log entries from all storage handlers
Removes a handler from the factory
true if the handler was removed, false if it was not found
The handler to remove
Factory for creating Logger instances
The factory is initialized with one or more log handlers. All loggers created from the factory will write to all configured handlers.
Example