log_app()记录一个日志到文件中

目录

描述

Logs messages to a file.

You can log all atom actions within wordpress by simply calling this function

log_app() 描述

用法

<?php log_app$label$msg?>

log_app() 用法

参数

$label

(string) (必填) Type of logging to be done.

默认值: None

$msg

(string) (必填) Information describing the type of logging being done.

默认值: None

log_app() 参数

示例

Assuming we're within one the wp-app.php

log_app() 示例

注意

In order for logging to work, you will need to edit wp_app.php and modify the global variable app_logging line 32 from:

to:

log_app() 注意