( self: Logger<Message, Output> )
| 303 | * @since 2.0.0 |
| 304 | */ |
| 305 | export const withConsoleError = <Message, Output>( |
| 306 | self: Logger<Message, Output> |
| 307 | ): Logger<Message, void> => |
| 308 | effect.loggerMake((options) => { |
| 309 | const console = options.fiber.getRef(effect.ConsoleRef) |
| 310 | return console.error(self.log(options)) |
| 311 | }) |
| 312 | /** |
| 313 | * Returns a new `Logger` that writes all output of the specified `Logger` to |
| 314 | * the console. |