log_wrapper

command module
v0.0.0-...-98b24e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 8 Imported by: 0

README

Log Wrapper

This project execute a python script and continually read the stdout and stderr from the python script to process and register in a SQLite database for logging purposes.

Obs: The python script should produces logs like "[timestamp]: log message"

How to use this project:

  1. Build the binary:
go build .
  1. Execute the binary providing the following argumments:
./log_wrapper -database-folder=<path> -database-name=<name> -python-script=<file.py>
  1. By default the log_wrapper is executed without verbose, but you can activate using the -v flag. This will show the SQL insert queries for logs and errors in the SQLite database.
./log_wrapper -database-folder=<path> -database-name=<name> -python-script=<file.py> -v

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL