interface EntryInterface (View source)

An interface for making complex log entries

Methods

string
getMessage()

Convert this entry into a string that can be inserted into the log

array
getContext()

Get the added context for the log entry

Details

string getMessage()

Convert this entry into a string that can be inserted into the log

Ex: "Created a new user"

Return Value

string

array getContext()

Get the added context for the log entry

Ex: ["username": "...", "email": "...", "id": "...", "created_by": "..."]

Return Value

array