drush watchdog-show

Show watchdog messages.

Drush Command

drush watchdog-show

Arguments

wid : Optional id of a watchdog message to show in detail. If not provided, a listing of most recent 10 messages will be displayed. Alternatively if a string is provided, watchdog messages will be filtered by it.

Aliases

drush wd-show
drush ws

Options

--count : The number of messages to show. Defaults to 10.
--severity : Restrict to messages of a given severity level.
--type : Restrict to messages of a given type.
--tail : Continuously show new watchdog messages until interrupted.
--sleep-delay : To be used in conjunction with --tail. This is the number of seconds to wait between each poll to the database. Delay is 1 second by default.
--extended : Return extended information about each message.
--format : [object Object]
--fields : [object Object]
--list-separator : [object Object]
--line-separator : [object Object]
--field-labels : [object Object]
--format=json : [object Object]
--format=config : [object Object]
--format=csv : [object Object]
--format=html : [object Object]
--format=labeled-export : [object Object]
--format=list : [object Object]
--format=php : [object Object]
--format=print-r : [object Object]
--format=table : [object Object]
--format=var_export : [object Object]
--format=variables : [object Object]
--format=yaml : [object Object]

Examples

Show a listing of most recent 10 messages.

drush watchdog-show
Show in detail message with id 64.
drush watchdog-show 64
Show a listing of most recent 10 messages containing the string "cron run succesful".
drush watchdog-show "cron run succesful"
Show a listing of most recent 46 messages.
drush watchdog-show --count=46
Show a listing of most recent 10 messages with a severity of notice.
drush watchdog-show --severity=notice
Show a listing of most recent 10 messages of type php.
drush watchdog-show --type=php
Show a listing of most recent 10 messages with extended information about each one and continue showing messages as they are registered in the watchdog.
drush watchdog-show --tail --extended
Do a tail of the watchdog with a delay of two seconds between each poll to the database.
drush watchdog-show --tail --sleep-delay=2