Skip to main content

Colored log that also stores a properly formated csv.

Project description


Build Status codecov

Colored log that also stores a properly formated csv.


You can install it with pip by running:

pip install v-log


It works very similar to the regular logging library:

from v_log import VLogger
log = VLogger(__name__)


It can also show execution times and errors:

# Show time"Test time", time=10)

# Show error
    1 / 0
except Exception as e:
    log.error("Try errors", error=e)
    log.error("Try errors %s", "full", time=10, error=e)

This will output the following:



When creating the VLogger instance you can define:

param description default
module_name name of the module "base"
uri_log uri of the file where log will be stored "log.csv"
file_log_level minimum level of log events in order to be writed logging.INFO
console_log_level minimum level of log events in order to be printed logging.INFO
csv_separator csv separator ";"
base_path name of the root folder of the execution "src"

for example you could do:

import logging
from v_log import VLogger
log = VLogger(__name__, uri_log="data/log.log", file_log_level=logging.WARNING)



The content of this repository is licensed under a MIT.


Branches and commits use some prefixes to keep everything better organized.


  • f/: features
  • r/: releases
  • h/: hotfixs


  • [NEW] new features
  • [FIX] fixes
  • [REF] refactors
  • [PYL] pylint improvements
  • [TST] tests

Project details

Download files

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

Files for v-log, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size v_log-1.0.1-py3-none-any.whl (6.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size v_log-1.0.1.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page