Skip to main content

collection of simple utilities for use across the openvoiceos ecosystem

Project description

OVOS-utils

collection of simple utilities for use across the mycroft ecosystem

Install

pip install ovos_utils

Commandline scripts

ovos-logs

Small helper tool to quickly navigate the logs, create slices and quickview errors


  • ovos-logs slice [options]

    Slice logs of a given time period. Defaults on the last service start (-s) until now (-u)

    Different logs can be picked using the -l option. All logs will be included if not specified.
    Optionally the directory where the logs are stored (-p) and the file where the slices should be dumped (-f) can be specified.

    [ex: ovos-logs slice]
    Slice all logs from service start up until now.

    [ex: ovos-logs slice -s 17:05:20 -u 17:05:25]
    Slice all logs from 17:05:20 until 17:05:25.
    **no logs in that timeframe in other present logs Screenshot 2023-12-25 185004

    [ex: ovos-logs slice -s 17:05:20 -u 17:05:25 -l skills]
    Slice skills.log from 17:05:20 until 17:05:25.

    [ex: ovos-logs slice -s 17:05:20 -u 17:05:25 -f ~/testslice.log]
    Slice the logs from 17:05:20 until 17:05:25 on all log files and dump the slices in the file ~/testslice.log (default: ~/slice_<timestamp>.log). Screenshot 2023-12-25 190732


  • ovos-logs list [-e|-w|-d|-x] [options]

    List logs by severity (error/warning/debug/exception). A log level has to be specified - more than one can be listed

    A start and end date can be specified using the -s and -u options. Defaults to the last service start until now.
    Different logs can be picked using the -l option. All logs will be included if not specified.
    Optionally, the directory where the logs are stored (-p) and the file where the slices should be dumped (-f) can be passed as arguments.

    [ex: ovos-logs list -x]
    List the logs with level EXCEPTION (plus tracebacks) from the last service start until now. Screenshot 2023-12-25 184321

    [ex: ovos-logs list -w -e -s 20-12-2023 -l bus -l skills]
    List the logs with level WARNING and ERROR from the 20th of December 2023 until now from the logs bus.log and skills.log. Screenshot 2023-12-25 173739


  • ovos-logs reduce [options]

    Downsize logs to a given size (in bytes) or remove entries before a given date.

    Different logs can be included using the -l option. If not specified, all logs will be included.
    Optionally the directory where the logs are stored (-p) can be specified.

    [ex: ovos-logs reduce]
    Downsize all logs to 0 bytes

    [ex: ovos-logs reduce -s 1000000]
    Downsize all logs to ~1MB (latest logs)

    [ex: ovos-logs reduce -d "1-12-2023 17:00"]
    Downsize all logs to entries after the specified date/time

    [ex: ovos-logs reduce -s 1000000 -l skills -l bus]
    Downsize skills.log and bus.log to ~1MB (latest logs)


  • ovos-logs show -l [servicelog]

    Show logs

    [ex: ovos-logs show -l bus]
    Show the logs from bus.log.

    [ex: wrong servicelog]
    **logs shown depending on the logs present in the folder

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_utils-0.5.0.tar.gz (68.2 kB view details)

Uploaded Source

Built Distribution

ovos_utils-0.5.0-py3-none-any.whl (75.9 kB view details)

Uploaded Python 3

File details

Details for the file ovos_utils-0.5.0.tar.gz.

File metadata

  • Download URL: ovos_utils-0.5.0.tar.gz
  • Upload date:
  • Size: 68.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ovos_utils-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2220adb5993efd31b5e177bad0ab0f0ae9e157f0449493404fbaa06becee3536
MD5 5c37cd9dd94b43de1afcdfbcde7cef69
BLAKE2b-256 05c90bf81bca99048d7a2bedb287c95fbdb0517c6296a46085fe0636f67f2f8d

See more details on using hashes here.

File details

Details for the file ovos_utils-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ovos_utils-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 75.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ovos_utils-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20f22e646dc8457a4d31ee7eb9e749fe2a121474fcc03fb2309df061283389a9
MD5 cb33c5b46a277dad6fa52b407a26fab3
BLAKE2b-256 e6f4eba734ee68e951a434250ebf05bf6a5f4849f20ad2471a41c0c7ebbd96e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page