Skip to main content

Meow Log Tool

A tool to help you create logger which print to file, console or use Loggly

import sys
from meowlogtool import log_util
loggly_api = "YOUR-API-OF-LOGGLY.COM"

if __name__ == "__main__":

    # log to console and file
    logger1 = log_util.create_logger("temp_file", print_console=True)
    logger1.info("LOG_FILE") # log using logger1

    # log to console, file and loggly.com
    logger2 = log_util.create_logger("loggly", print_console=True, use_loggly=True, loggly_api_key=loggly_api)
    logger2.info("Log from python")

    # attach log to stdout (print function)
    s1 = log_util.StreamToLogger(logger1)
    sys.stdout = s1

    # anything print to console will be log
    print ('I am Pusheen the cat')
    a = 1234
    print ('I eat 3 shortcakes already. It is too short')
    print ('cost = ', a)
    html_log = log_util.up_gist('doggy.log', 'test_doggy', 'test_doggy')
    print('link on gist %s'%(html_log))

Metadata

Release files for meowlogtool 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meowlogtool 0.1.7
File Size Uploaded
meowlogtool-0.1.7.tar.gz 4.1 kB Details

Release files / meowlogtool-0.1.7.tar.gz

Download URL meowlogtool-0.1.7.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aa2ccfa7aa6e09a4e78c569f67104d76fb7cc5895d227ac10d0ee445a4e4d641
BLAKE2b-256 checksum
How to use checksums
94e6f52dd896ecf2af370023b3b4097bd5283ffdcd41e27dee9a13a18a32ca03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.7 This release

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page