Log_Command
in package
Inspects and maintains the optional event-log table.
Table of Contents
Methods
- clear() : void
- Empties the event-log table.
- list_events() : void
- Lists the most recent event-log rows.
- prune() : void
- Deletes event-log rows older than the configured retention period.
- show() : void
- Zeigt einen einzelnen Event-Log-Eintrag mit allen Spalten.
Methods
clear()
Empties the event-log table.
public
clear(array<int, string> $args, array<string, string> $assoc_args) : void
OPTIONS
[--yes] : Skip the confirmation prompt.
EXAMPLES
wp creacaptcha log clear --yes
Parameters
- $args : array<int, string>
-
Positional arguments.
- $assoc_args : array<string, string>
-
Associative arguments.
list_events()
Lists the most recent event-log rows.
public
list_events(array<int, string> $args, array<string, string> $assoc_args) : void
OPTIONS
[--number=
[--type=
[--fields=
[--format=
EXAMPLES
wp creacaptcha log list --number=50 --type=firewall
wp creacaptcha log list --fields=created_at,event_type,plugin,form_id
Parameters
- $args : array<int, string>
-
Positional arguments.
- $assoc_args : array<string, string>
-
Associative arguments.
Tags
prune()
Deletes event-log rows older than the configured retention period.
public
prune(array<int, string> $args, array<string, string> $assoc_args) : void
EXAMPLES
wp creacaptcha log prune
Parameters
- $args : array<int, string>
-
Positional arguments.
- $assoc_args : array<string, string>
-
Associative arguments.
show()
Zeigt einen einzelnen Event-Log-Eintrag mit allen Spalten.
public
show(array<int, string> $args, array<string, string> $assoc_args) : void
OPTIONS
[--format=
EXAMPLES
wp creacaptcha log show 42
wp creacaptcha log show 42 --format=json
Parameters
- $args : array<int, string>
-
Positional arguments.
- $assoc_args : array<string, string>
-
Associative arguments.