Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public interface LogSink

Where log lines go. The default writes each line to standard output, the stream a container platform collects; install another with Logging.setSink(LogSink) to forward them elsewhere.

Methods

public abstract void write(Level level, String logger, String line, Throwable error)Writes one line.

Method details

write

public abstract void write(Level level, String logger, String line, Throwable error)
Writes one line.

Parameters

level Level
the line’s level
logger String
the name of the logger that wrote it
line String
the whole formatted line, timestamp to message, with no newline
error Throwable
the throwable passed with the message, or null