rxlog

RxLog library (for RxJava2)

License

License

GroupId

GroupId

sk.teamsoft
ArtifactId

ArtifactId

rxlog
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

aar
Description

Description

rxlog
RxLog library (for RxJava2)
Project URL

Project URL

https://github.com/Team-SOFTsk/RxLog
Source Code Management

Source Code Management

https://github.com/Team-SOFTsk/RxLog

Download rxlog

How to add to project

<!-- https://jarcasting.com/artifacts/sk.teamsoft/rxlog/ -->
<dependency>
    <groupId>sk.teamsoft</groupId>
    <artifactId>rxlog</artifactId>
    <version>1.0.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/sk.teamsoft/rxlog/
implementation 'sk.teamsoft:rxlog:1.0.2'
// https://jarcasting.com/artifacts/sk.teamsoft/rxlog/
implementation ("sk.teamsoft:rxlog:1.0.2")
'sk.teamsoft:rxlog:aar:1.0.2'
<dependency org="sk.teamsoft" name="rxlog" rev="1.0.2">
  <artifact name="rxlog" type="aar" />
</dependency>
@Grapes(
@Grab(group='sk.teamsoft', module='rxlog', version='1.0.2')
)
libraryDependencies += "sk.teamsoft" % "rxlog" % "1.0.2"
[sk.teamsoft/rxlog "1.0.2"]

Dependencies

compile (2)

Group / Artifact Type Version
com.jakewharton.timber : timber jar 4.5.1
io.reactivex.rxjava2 : rxjava jar 2.0.9

Project Modules

There are no modules declared in this project.

RxLog

RxLog is a simple helper library to handle your RxJava logs. Supports both RxJava1 and RxJava2

Download Maven Central

Usage

For RxJava2

compile 'sk.teamsoft:rxlog:1.0.2'

For RxJava1

compile 'sk.teamsoft:rxlog1:1.0.2'

For full lifecycle logging

Observable.just(data)
    .compose(RxLog("this will log all lifecycle events (subscribe/next/complete/error...) of this stream"))
    .subscribe(...);

For custom logging

Observable.just(data)
    .compose(RxLog("this will log only next and complete events", RxLog.LOG_NEXT_DATA | RxLog.LOG_COMPLETE))
    .subscribe(...);

Available options for bitmask:

  • LOG_NEXT_DATA - logs next event with data
  • LOG_NEXT_EVENT - logs next event but without data (useful when data is too big to serialize)
  • LOG_ERROR - logs error event
  • LOG_COMPLETE - logs complete event
  • LOG_SUBSCRIBE - logs subscribe event
  • LOG_TERMINATE - logs terminate event
  • LOG_DISPOSE - logs dispose event

Author

Team-SOFT s.r.o.
[email protected]

sk.teamsoft

Team-SOFT s.r.o.

Team-SOFT s.r.o. is a company, which focuses on complex enterprise solutions and ERP systems for small and medium-sized companies

Versions

Version
1.0.2
1.0.1
1.0.0