Sign inSign up

adilansari488/log-generator

By adilansari488

•Updated over 2 years ago

Python-based log generator with console and file output, featuring log rotation.

Image
Developer tools
Monitoring & observability
0

372

adilansari488/log-generator repository overview

This Docker repository contains the image for a Python-based log generator application.

The application generates random log messages with varying severity levels (INFO, DEBUG, WARNING, ERROR, CRITICAL) and logs them to both the console and a rotating log file. The log file rotation is handled by the RotatingFileHandler from Python's logging module, which rotates the log file once it reaches a certain size.

This application is useful for testing and debugging logging systems and log analysis tools.

Default log file path: /var/log/log-generator/application.log

Update Log File Path:

You can update the log file path by passing the command line argument while running the container as shown below:

docker run adilansari488/log-generator:latest /tmp/app.log

Tag summary

Content type

Image

Digest

sha256:a0a7ed060…

Size

46.1 MB

Last updated

over 2 years ago

docker pull adilansari488/log-generator