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 : Select output format. Available: json, csv, html, list, table, var_export, yaml. Default is json.

    --fields : Fields to output.

    --list-separator : Specify how elements in a list should be separated. In lists of lists, this applies to the elements in the inner lists.

    --line-separator : In nested lists of lists, specify how the outer lists ("lines") should be separated.

    --field-labels : Add field labels before first line of data. Default is on; use --no-field-labels to disable.

    --format=json : Javascript Object Notation.

    --format=config : A configuration file in executable php format. The variable name is "config", and the variable keys are taken from the output data array's keys.

    --format=csv : A list of values, one per row, each of which is a comma-separated list of values.

    --format=html : An HTML representation

    --format=labeled-export : A list of php exports, labeled with a name.

    --format=list : A simple list of values.

    --format=php : A serialized php string.

    --format=print-r : Output via php print_r function.

    --format=table : A formatted, word-wrapped table.

    --format=var_export : An array in executable php format.

    --format=variables : A list of php variable assignments.

    --format=yaml : Yaml output format.

  • 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