set app name before creating logger
This commit is contained in:
parent
62820fd272
commit
77ae2cc627
@ -80,6 +80,9 @@ class APnutI
|
|||||||
?string $log_path = null,
|
?string $log_path = null,
|
||||||
$log_level = null
|
$log_level = null
|
||||||
) {
|
) {
|
||||||
|
if (!empty($app_name)) {
|
||||||
|
$this->app_name = $app_name;
|
||||||
|
}
|
||||||
if (empty($log_level)) {
|
if (empty($log_level)) {
|
||||||
$log_level = Logger::INFO;
|
$log_level = Logger::INFO;
|
||||||
} elseif (is_string($log_level)) {
|
} elseif (is_string($log_level)) {
|
||||||
@ -112,9 +115,6 @@ class APnutI
|
|||||||
if (!empty($redirect_uri)) {
|
if (!empty($redirect_uri)) {
|
||||||
$this->redirect_uri = $redirect_uri;
|
$this->redirect_uri = $redirect_uri;
|
||||||
}
|
}
|
||||||
if (!empty($app_name)) {
|
|
||||||
$this->app_name = $app_name;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user