Skip to content

LogLess is a centralized logging/event stack using AWS Kinesis/Lambda. This is a Python logging library.

License

Notifications You must be signed in to change notification settings

apolloFER/logless-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogLess

LogLess is a centralized logging/event stack using AWS Kinesis/Lambda. The Python version works as a logging Handler.

Usage

Use the create_handler function to create a new LogLessHandler with the name of your Kinesis stream as the first parameter. The second parameter is the hostname of your machine.

Example

import logless_logging
import logging
import socket
import time

logger = logging.getLogger()

if __name__ == '__main__':
    handler = logless_logging.create_handler("logless-test", socket.gethostname())
    logger.addHandler(handler)

    logger.info("Testing 123")
    logger.warning("Testing 124")
    logger.error("Testing 125")
    
    time.sleep(2)

License

MIT License

About

LogLess is a centralized logging/event stack using AWS Kinesis/Lambda. This is a Python logging library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages