flribeiro / pylogfile

Class to create an object for log file manipulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyLogFile

Documentation Status

Class to create an object for log file manipulation.

Features

  • var = ArquivoDeLog('nameapp') - create a new ArquivoDeLog object using 'nameapp' as the application logged name.
  • var.registra_log('something') - store 'something' in the log text for this session/object preceded by the system time (hour and minute).
  • var.mostra_log() - shows the current log.
  • var.grava_arq_log() - write log content to the file 'nameapp.log'.
  • var.rotaciona_arq_log() - starts a new log file if the previous one surpassed 5 MB.
  • function now() - returns current system time.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

Class to create an object for log file manipulation.

License:MIT License


Languages

Language:Python 67.2%Language:Makefile 32.8%