Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

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.13.9a1.tar.gz (78.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_utils-0.13.9a1-py3-none-any.whl (89.5 kB view details)

Uploaded Python 3

File details

Details for the file ovos_utils-0.13.9a1.tar.gz.

File metadata

  • Download URL: ovos_utils-0.13.9a1.tar.gz
  • Upload date:
  • Size: 78.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ovos_utils-0.13.9a1.tar.gz
Algorithm Hash digest
SHA256 e8128b6e31d7434f75e1120062e599abbfcb72afac5ca475c40a02c88812bcca
MD5 78451dd1e2df8fd576c88e0bc3e4548f
BLAKE2b-256 516fd3ab3f474ba7d234fa27b38aacabe811836a540d813eaa9dbdba4867ff46

See more details on using hashes here.

File details

Details for the file ovos_utils-0.13.9a1-py3-none-any.whl.

File metadata

  • Download URL: ovos_utils-0.13.9a1-py3-none-any.whl
  • Upload date:
  • Size: 89.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ovos_utils-0.13.9a1-py3-none-any.whl
Algorithm Hash digest
SHA256 a26679f216840fa82054927f3912fdb75c440e17098423d40f6cd35cf4f46c17
MD5 394300d4ebb68927fc79bbccfb62fdd8
BLAKE2b-256 9cec683342c7b9bf8094d416b745d1e7758cb5eb9d476c3147c3f92404722648

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.13.9a1 This release

2 files

0.8.5

2 files

0.8.4

2 files

0.8.1

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.1.0

2 files

0.1.0a2

2 files

0.0.38

2 files

0.0.37

2 files

0.0.36

2 files

0.0.35

2 files

0.0.35a4

2 files

0.0.35a3

2 files

0.0.34

2 files

0.0.33

2 files

0.0.32

2 files

0.0.30

2 files

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

1 file

0.0.19

1 file

0.0.18

1 file

0.0.15

1 file

0.0.14

1 file

0.0.14a6

1 file

0.0.12

1 file

0.0.11

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page