Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (17 loc) · 919 Bytes

LoggingSubscriber.md

File metadata and controls

25 lines (17 loc) · 919 Bytes

com.industry.rx_epl.LoggingSubscriber <>

A specialised instance of a Subscriber which logs all values and completion, error, and unsubscription.

Note: Subscribers should not be reused for multiple subscriptions.

Constructors

# static .create(identifier: string) returns Subscriber <>

Creates a new LoggingSubscriber. The identifier is added to all messages produced.

Observable.fromValues([1,2,3])
	.subscribe(LoggingSubscriber.create("Output"));

// Output in the log file:
// # Output: Received value: 1
// # Output: Received value: 2
// # Output: Received value: 3
// # Output: Completed
// # Output: Unsubscribed