| 21 | | * Characteristics should: |
| 22 | | * Include in its simplest (default) use case a wrapper for ''error_log()'' to send a message to WP_DEBUG |
| 23 | | * Optionally allow a developer to configure: |
| 24 | | * log destinations (screen and file. Maybe suggest ''wp-content/logs/plugin-name/log-file-name'') |
| 25 | | * log structure (example: ''[YYYYMMDD hh:mm:ss]level message'') |
| 26 | | * It could also include hooks so 3rd parties can further enhance logging (example: allow a 3rd party to configure rolling log files, log to external log sinks, etc) |
| | 21 | * Characteristics should allow a developer to configure: |
| | 22 | * log destinations (''error_log()'', screen and file. Maybe suggest ''wp-content/logs/plugin-name/log-file-name'') |
| | 23 | * log structure (example: ''[YYYYMMDD hh:mm:ss]level message'') |
| | 24 | * It could also include hooks so 3rd parties can further enhance logging (example: allow a 3rd party to configure rolling log files, log to external log sinks, etc) |