Class LogMessage

Package com.yandex.runtime.logging

java.lang.Object
    ↳ com.yandex.runtime.logging.LogMessage

class LogMessage implements Serializable

Represents a log message with its metadata.

Nested Class Summary

Modifier and Type

Interface

Description

static final

LogLevel

Log level severity.

Summary

Constructors

Signature and Description

LogMessage(long time,
           @NonNull LogLevel level,
           @NonNull java.lang.String scope,
           @NonNull java.lang.String message,
           @NonNull java.lang.String verboseInfo)

LogMessage()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

long

getTime()
Absolute timestamp of the log message.

LogLevel

getLevel()
Severity level of the log message.

java.lang.String

getScope()
Scope or category of the log message.

java.lang.String

getMessage()
The log message content.

java.lang.String

getVerboseInfo()
Additional verbose information about the log message.

void

serialize(com.yandex.runtime.bindings.Archive archive)

Constuctors

LogMessage

LogMessage(long time,
           @NonNull LogLevel level,
           @NonNull java.lang.String scope,
           @NonNull java.lang.String message,
           @NonNull java.lang.String verboseInfo)


LogMessage

LogMessage()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getTime

long getTime()

Absolute timestamp of the log message.


getLevel

@NonNull
LogLevel getLevel()

Severity level of the log message.


getScope

@NonNull
java.lang.String getScope()

Scope or category of the log message.


getMessage

@NonNull
java.lang.String getMessage()

The log message content.


getVerboseInfo

@NonNull
java.lang.String getVerboseInfo()

Additional verbose information about the log message.

Used for logging exceptions with call stack.


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)