You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returning "report"-arrays in their methods. The response has - most of the time - following fields:
errors - NULL|\WP_Error|array
changes - string|array|null
tables - string|int|null|array
table_name - string
changes_count - int
filename - string
timing
We should standardize the logging (reports) within these classes (e.G. Monolog). Most of the information is not used anymore and only important when an error occures. On error --> generate log file which can be downloaded - printed out (maybe can be disabled/activated via setting).
The methods should return a success/fail state (true/false) for better testing. The page-classes can print out the correct notices.
The classes should implement methods to grant access to generated reports for error handling (see 1.).
The text was updated successfully, but these errors were encountered:
Chrico
changed the title
Reports - standardisation
Reports|Logging - standardisation
Apr 7, 2016
@Chrico ich hatte schon einen Überlegung hier zu angestellt aber diese wieder zurückgesetzt.
Unter inc/Service/Notifyer.php & inc/Service/NotifyerInterface.php
Currently the following classes:
Inpsyde\SearchReplace\Database\Exporter
Inpsyde\SearchReplace\Database\Importer
Inpsyde\SearchReplace\Database\Replace
returning "report"-arrays in their methods. The response has - most of the time - following fields:
NULL|\WP_Error|array
string|array|null
string|int|null|array
string
int
string
Monolog
). Most of the information is not used anymore and only important when an error occures. On error --> generate log file which can be downloaded - printed out (maybe can be disabled/activated via setting).The text was updated successfully, but these errors were encountered: