This commit is contained in:
2020-09-16 20:23:23 +08:00
parent 63dc3031a8
commit 34d4cbad8b
4 changed files with 31 additions and 8 deletions
+16
View File
@@ -69,6 +69,22 @@ if (!function_exists('loadByDir')) {
}
if (!function_exists('write')) {
/**
* @param string $messages
* @param string $category
* @throws ComponentException
*/
function write(string $messages, $category = 'app')
{
$logger = Snowflake::app()->getLogger();
$logger->write($messages, $category);
}
}
if (!function_exists('instance_load')) {
function instance_load()