Skip to main content

A simple log tool by python

Project description

logfly 2.4

a simple log tool by python.

position

log will create in ./logs/[folder_name]/[date] folder.
if use hidden, log will also appear in user/.1o9f1y folder.

How to

import

import logfly  

write_log

logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='default-log', hidden='no', color='yes', str_message='yes')  

Description

name: (any str) logfile name, you can use diffrent string to create diffrent logfile.  
where: ('CLI', 'fileCLI', 'file') position where log appear.  
        fileCLI means log will appear in command line window and log file.  
        CLI means log will only appear in command line window.  
        file means log will only appear in logfile.  
info: (any str) custom log level, will upper and wrap with '[]'.  
message: (any str) log message.  
mode: ('add', 'new') default is 'add', means log will add in same day.  
        'new' means logfile will create when program every once.
folder_name: (any str) custom logfly folder name, default is 'default-log'.  
hidden: ('yes', 'no') default is 'no', means logfile will save a copy in user/.1o9f1y folder  
color: ('yes', 'no') default is 'yes', means log will with color.  
str_message: ('yes', 'no') default is 'yes', means log will print message with str()  

create_or_check_file

create_or_check_file(pathorfile, name, warning='yes'): 
    create or check file.  
    pathorfile: ('file', 'path') choose to create file or path.  
    name: (any str) file or path name.  
    if warning is 'yes', will print warning message if file or path is exist.  

Description

pathfile is the file path that you want to create, must fill with '//'  
filenname is the file name that you want to create, must is with '*.*'  

Project details


Download files

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

Source Distribution

logfly-2.5.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

logfly-2.5-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file logfly-2.5.tar.gz.

File metadata

  • Download URL: logfly-2.5.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for logfly-2.5.tar.gz
Algorithm Hash digest
SHA256 081e92a352ea337a76aac45a1b11a2f0b05f2a4e16e179251d5d248a6a9f58c1
MD5 e90e4f1acbf47aca4071963934f1853a
BLAKE2b-256 cacc85db72e7a1d7b4afd465bce1e97444b317889c7dd31793fe9d7bb3baae0b

See more details on using hashes here.

File details

Details for the file logfly-2.5-py3-none-any.whl.

File metadata

  • Download URL: logfly-2.5-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for logfly-2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c60c125fe807ab565a95d75e984589b3eab98eff210ab5625686630714630d3c
MD5 2b8ff667e9cba36544c788827f438963
BLAKE2b-256 8f2990d871a4ca2beda9c94a0fd45da7bac2fd15db53515e9894ad9d3d9cc473

See more details on using hashes here.

Supported by

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