class LogEntry (View source)

Methods

string
getLevel()

Gets the level of the log.

string
getLevelName()

Gets the name of the logging level.

string
getLevelDisplayName()

Gets the name of the logging level.

string
getMessage()

Gets the message of the log.

string
getChannel()

Gets the channel of the log.

string
getChannelDisplayName()

Gets the channel name of the logging level.

int
getID()

Gets the id of the log.

string
getLevelIcon()

Gets the HTML code for the icon of the logging level.

int
getUserID()

Gets the user id of the user that caused the log.

User|null
getUserObject()

Gets the user object of the user that caused the log.

string
getDisplayTimestamp()

Gets the formatted time of the log timestamp.

string
getTimestamp()

Gets the timestamp of the log.

static LogEntry|null
getByID(int $logID)

Gets the log object from its id.

delete()

Deletes the log entry.

Details

string getLevel()

Gets the level of the log.

Return Value

string

string getLevelName()

Gets the name of the logging level.

Return Value

string

string getLevelDisplayName()

Gets the name of the logging level.

Return Value

string

string getMessage()

Gets the message of the log.

Return Value

string

string getChannel()

Gets the channel of the log.

Return Value

string

string getChannelDisplayName()

Gets the channel name of the logging level.

Return Value

string

int getID()

Gets the id of the log.

Return Value

int

string getLevelIcon()

Gets the HTML code for the icon of the logging level.

Return Value

string

int getUserID()

Gets the user id of the user that caused the log.

Return Value

int

User|null getUserObject()

Gets the user object of the user that caused the log.

Return Value

User|null

string getDisplayTimestamp()

Gets the formatted time of the log timestamp.

Return Value

string

string getTimestamp()

Gets the timestamp of the log.

Return Value

string

static LogEntry|null getByID(int $logID)

Gets the log object from its id.

Parameters

int $logID

Id of the log

Return Value

LogEntry|null

delete()

Deletes the log entry.