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
levelLevel- the line’s level
loggerString- the name of the logger that wrote it
lineString- the whole formatted line, timestamp to message, with no newline
errorThrowable- the throwable passed with the message, or null