mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
22 lines
522 B
PHP
22 lines
522 B
PHP
<?php
|
|
|
|
require_once __DIR__.'/_executor.php';
|
|
|
|
frankenphp_log("default level message");
|
|
|
|
return function () {
|
|
frankenphp_log("some debug message {$_GET['i']}", FRANKENPHP_LOG_LEVEL_DEBUG, [
|
|
"key int" => 1,
|
|
]);
|
|
|
|
frankenphp_log("some info message {$_GET['i']}", FRANKENPHP_LOG_LEVEL_INFO, [
|
|
"key string" => "string",
|
|
]);
|
|
|
|
frankenphp_log("some warn message {$_GET['i']}", FRANKENPHP_LOG_LEVEL_WARN);
|
|
|
|
frankenphp_log("some error message {$_GET['i']}", FRANKENPHP_LOG_LEVEL_ERROR, [
|
|
"err" => ["a", "v"],
|
|
]);
|
|
};
|