exlib.logger

This module provides logging utilities.

Use Log class static methods.

Synopsis:

import exlib.logger;

// setup:

// use stderror for logging
setStderrLogger();
// set log level
setLogLevel(LogLeve.Debug);

// usage:

// log debug message
Log.d("mouse clicked at ", x, ",", y);
// log error message
Log.e("exception while reading file", e);

Members

Classes

Log
class Log

Enums

LogLevel
enum LogLevel

Log levels

Functions

currentTimeMillis
long currentTimeMillis()

Returns timestamp in milliseconds since 1970 UTC similar to Java System.currentTimeMillis()

Meta

License

Boost License 1.0

Authors

Vadim Lopatin, coolreader.org@gmail.com