CreaCaptcha

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=] : How many rows to show. Default: 20.

[--type=] : Filter by event type (verified, failed, firewall, ratelimit, underattack, underattack_passed, challenge).

[--fields=] : Komma-Liste der anzuzeigenden Spalten. Default: created_at,event_type,ip,path. Verfügbare Spalten: id, created_at, event_type, ip, user_id, user_agent, referrer, path, plugin, action, form_id, interceptor, reason, verification_data, request_body.

[--format=] : Output format (table, json, yaml, csv).

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
subcommand

list

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

: Die Event-ID aus der Spalte `id` in `log list`.

[--format=] : Output format (table, json, yaml, csv). Default: table.

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.


        
On this page

Search results