Logging framework for GravityKit.
More...
Logging framework for GravityKit.
Definition at line 24 of file Logger/Framework.php.
◆ __construct()
__construct |
( |
|
$logger_id, |
|
|
|
$logger_title |
|
) |
| |
|
private |
Class constructor.
- Since
- 1.0.0
- Parameters
-
string | $logger_id | Unique name that's prefixed to each log entry. |
string | $logger_title | Logger title (used in the admin UI). |
- Returns
- void
- Runs Filter:
gk/foundation/logger/log-path
Changes path where logs are stored.
- Since
- 1.0.0
- Parameters
-
string | $log_path | Location where logs are stored relative to WP_CONTENT_DIR. Default: WP_CONTENT_DIR . '/logs'. |
Definition at line 85 of file Logger/Framework.php.
References Framework\get_logger_handler().
◆ __call()
__call |
( |
|
$name, |
|
|
array |
$arguments = [] |
|
) |
| |
Magic method to access Monolog's logger class methods.
- Since
- 1.0.0
- Parameters
-
string | $name | Package/class name. |
array | $arguments | Optional and not used. |
- Returns
- mixed|void
- Runs Filter:
gk/foundation/logger/allow-heartbeat-requests
Allows logging of WP heartbeat requests.
- Since
- 1.0.0
- Parameters
-
bool | $log_heartbeat | Default: false. |
Definition at line 487 of file Logger/Framework.php.
References $name.
◆ get_instance()
static get_instance |
( |
|
$logger_id = '' , |
|
|
|
$logger_title = '' |
|
) |
| |
|
static |
Returns class instance.
- Since
- 1.0.0
- Parameters
-
string | $logger_id | (optional) Unique logger identifier that's prefixed to each log entry or used with some handlers.. Default: gravitykit. |
string | $logger_title | (optional) Logger title (used in the admin UI). Default: GravityKit. |
- Returns
- Framework
Definition at line 128 of file Logger/Framework.php.
◆ get_log_file()
◆ get_logger_handler()
◆ get_settings()
get_settings |
( |
|
$gk_settings | ) |
|
◆ save_settings()
save_settings |
( |
|
$new_settings | ) |
|
◆ $_instances
◆ $_log_path
◆ $_logger
◆ $_logger_id
◆ $_logger_title
◆ $_settings
◆ DEFAULT_LOGGER_ID
const DEFAULT_LOGGER_ID = 'gravitykit' |
◆ DEFAULT_LOGGER_TITLE
const DEFAULT_LOGGER_TITLE = 'GravityKit' |
The documentation for this class was generated from the following file: