LogSinkFactory

The structure of logging!

    ┌────────────────────┐             ┌────────────────────┐
    │ getNormalLogSink() │             │ getLogcatLogSink() │
    └──────┬─────────────┘             └───────────────┬────┘
           │                                           │
    ┌──────▼───────────┐                               │
    │ SwitchingLogSink │                               │
    └───────┬───────┬──┘                               │
            │       │       ┌─────────────────────┐    │
            │       └───────► MultiplexingLogSink │    │
            │               └┬────────────────┬───┘    │
            │                │                │        │
            │ ┌──────────────▼─┐      ┌───────▼────────▼───┐
            │ │ CachingLogSink │      │ DisableableLogSink │
            │ └──────┬─────────┘      └─────────┬──────────┘
            │        │                          │
       ┌────▼────────▼─┐                ┌───────▼───────┐
       │ NativeLogSink │                │ LogcatLogSink │
       └───────┬───────┘                └───────┬───────┘
               │                                │
               │                       ┌────────▼─────────┐
               │                       │ android.util.Log │
  Java         │                       └──────────────────┘
  ─────────────┼──────────────────────────────────────────────────
  C++          │
    ┌──────────▼───────────┐
    │ ali::incident::entry │
    └──────────┬───────────┘
               │
  ┌────────────▼──────────────┐
  │ ali::incident::dispatcher │
  └────────────┬──────────────┘
               │
    ┌──────────▼───────────┐
    │ GlobalLoggingManager │
    └──────────────────────┘

Functions

Link copied to clipboard
Get the logcat log sink.
Link copied to clipboard
Get the normal log sink.
Link copied to clipboard
Link copied to clipboard
Switch all loggers to use the native log sink instead of logcat.