exlib.logger

This module provides logging utilities.

Use Log class static methods.

Synopsis:

1 import exlib.logger;
2 
3 // setup:
4 
5 // use stderror for logging
6 setStderrLogger();
7 // set log level
8 setLogLevel(LogLeve.Debug);
9 
10 // usage:
11 
12 // log debug message
13 Log.d("mouse clicked at ", x, ",", y);
14 // log error message
15 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

Authors

Vadim Lopatin, coolreader.org@gmail.com

License

Boost License 1.0