class Log (View source)

Properties

static protected string $channel

Nama file log.

Methods

static void
channel($name = null)

Set nama file tempat menyimpan log.

static 
info(string $message, mixed|null $data = null)

Tulis log info.

static 
warning(string $message, mixed|null $data = null)

Tulis log warning.

static 
error(string $message, mixed|null $data = null)

Tulis log error.

static 
write(string $type, string $message, mixed|null $data = null)

Tulis pesan ke file log.

static string
format(string $type, string $message)

Format pesan logging.

Details

static void channel($name = null)

Set nama file tempat menyimpan log.

Parameters

$name

Return Value

void

static info(string $message, mixed|null $data = null)

Tulis log info.

Parameters

string $message
mixed|null $data

static warning(string $message, mixed|null $data = null)

Tulis log warning.

Parameters

string $message
mixed|null $data

static error(string $message, mixed|null $data = null)

Tulis log error.

Parameters

string $message
mixed|null $data

static protected write(string $type, string $message, mixed|null $data = null)

Tulis pesan ke file log.

Parameters

string $type
string $message
mixed|null $data

static protected string format(string $type, string $message)

Format pesan logging.

Parameters

string $type
string $message

Return Value

string