BetaBetaRegisters 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
BetaClears 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.
BetaCreates a logger instance for a specific scope/category
The scope or category for the logger (e.g., 'http', 'auth', 'component-name')
A logger instance that writes to all configured handlers
BetaRemoves a handler from the factory
The handler to remove
true if the handler was removed, false if it was not found
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