android-components / mozilla.components.support.base.facts.processor / LogFactProcessor

LogFactProcessor

class LogFactProcessor : FactProcessor (source)

A FactProcessor implementation that prints collected Fact instances to the log.

Constructors

Name Summary
<init> LogFactProcessor(logger: Logger = Logger("Facts"))
A FactProcessor implementation that prints collected Fact instances to the log.

Functions

Name Summary
process fun process(fact: Fact): Unit
Passes the given Fact to the FactProcessor for processing.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.
register fun FactProcessor.register(): Facts
Registers this FactProcessor to collect Fact instances from the Facts singleton.