Log
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.
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 protected
write(string $type, string $message, mixed|null $data = null)
Tulis pesan ke file log.
static protected string
format(string $type, string $message)
Format pesan logging.