Documentation

EventLog extends Model
in package

System\Models\EventLog

Tags
mixin

\Eloquent

Table of Contents

$created_at  : Carbon|null
$details  : string|null
$id  : int
$level  : string
$message  : string|null
$summary  : string
$updated_at  : Carbon|null
$jsonable  : array<string|int, mixed>
$table  : string
add()  : self
Creates a log record
all()  :
get()  :
getLevelAttribute()  : string
Beautify level value.
getSummaryAttribute()  : string
Creates a shorter version of the message attribute, extracts the exception message or limits by 100 characters.
newModelQuery()  :
newQuery()  :
query()  :
useLogging()  : bool
Returns true if this logger should be used.
whereCreatedAt()  :
whereDetails()  :
whereId()  :
whereLevel()  :
whereMessage()  :
whereUpdatedAt()  :

Properties

$summary read-only

public string $summary

$jsonable

protected array<string|int, mixed> $jsonable = ['details']

List of attribute names which are json encoded and decoded from the database.

$table

protected string $table = 'system_event_logs'

The database table used by the model.

Methods

add()

Creates a log record

public static add(string $message[, string $level = 'info' ][, string $details = null ]) : self
Parameters
$message : string

Specifies the message text

$level : string = 'info'

Specifies the logging level

$details : string = null

Specifies the error details string

Return values
self

all()

public static all(mixed $columns) :
Parameters
$columns : mixed
Return values

get()

public static get(mixed $columns) :
Parameters
$columns : mixed
Return values

getLevelAttribute()

Beautify level value.

public getLevelAttribute(string $level) : string
Parameters
$level : string
Return values
string

getSummaryAttribute()

Creates a shorter version of the message attribute, extracts the exception message or limits by 100 characters.

public getSummaryAttribute() : string
Return values
string

newModelQuery()

public static newModelQuery() :
Return values

newQuery()

public static newQuery() :
Return values

query()

public static query() :
Return values

useLogging()

Returns true if this logger should be used.

public static useLogging() : bool
Return values
bool

whereCreatedAt()

public static whereCreatedAt(mixed $value) :
Parameters
$value : mixed
Return values

whereDetails()

public static whereDetails(mixed $value) :
Parameters
$value : mixed
Return values

whereId()

public static whereId(mixed $value) :
Parameters
$value : mixed
Return values

whereLevel()

public static whereLevel(mixed $value) :
Parameters
$value : mixed
Return values

whereMessage()

public static whereMessage(mixed $value) :
Parameters
$value : mixed
Return values

whereUpdatedAt()

public static whereUpdatedAt(mixed $value) :
Parameters
$value : mixed
Return values

Search results