Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
/translate5.sh help log
Description:
  Query the translate5 log

Usage:
  log [options] [--] [<filter>]

Arguments:
  filter                Provide keywords to filter output. EXXXX is recognized as ecodes, text.text.text as domains and all other is searched in message. If keyword is only one Number, it is assumed that is a log ID an only that entry is shown.

Options:
  -l, --level=LEVEL     Filtering for specific level(s). If given as string, only the level given as string is shown. Given as integer: filtering for all levels as bitmask.
  -f, --follow          Show the most recent log entries, and continuously print new entries as they are appended to the log. Do not show a summary.
  -a, --all             Shows the full blown log data (extra, trace, etc)
  -s, --since=SINCE     Shows log data since the given pint int time (strtotime parsable string)
  -u, --until=UNTIL     Shows log data until the given pint int time (strtotime parsable string)
      --no-summary      Do not print the summary and intro texts - for further shell scripting.
      --summary-only    Print only the summary.
      --purge           Warning: purges the logs found be the given filters. Is asking for confirmation of not used with -q|--quiet or -n|--no-interaction.
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Tool to query, investigate and purge the translate5 system log. By default a list of log entries and a summary is shown.
  
  list output example:
    2020-09-07 09:26:11 FATAL E1027 (#123) core → PHP E_ERROR: Uncaught Error: Call to undefined method XyZ in foo.php:121
  the format is:
    log timestamp       level ecode (#ID)  app.domain → message