watchdog-show

Show watchdog messages.

drush watchdog-show

Aliases:

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.

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.

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