drush watchdog-showfor drush 8x


Show watchdog messages.

drush watchdog-show

  • Aliases


    watchdog-show has 2 alias/es:


    drush wd-show

    drush ws

  • Arguments


    watchdog-show accepts 1 argument/s:


    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


    watchdog-show accepts 23 option/s:


    --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

    --format : format

    --fields

    --fields : fields

    --list-separator

    --list-separator : list-separator

    --line-separator

    --line-separator : line-separator

    --field-labels

    --field-labels : field-labels

    --format=json

    --format=json : format=json

    --format=config

    --format=config : format=config

    --format=csv

    --format=csv : format=csv

    --format=html

    --format=html : format=html

    --format=labeled-export

    --format=labeled-export : format=labeled-export

    --format=list

    --format=list : format=list

    --format=php

    --format=php : format=php

    --format=print-r

    --format=print-r : format=print-r

    --format=table

    --format=table : format=table

    --format=var_export

    --format=var_export : format=var_export

    --format=variables

    --format=variables : format=variables

    --format=yaml

    --format=yaml : format=yaml

  • 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

  • Comments


    comments powered by Disqus