🚀 Atikin Logger
A lightweight and beginner-friendly Python logging library with colored output.
Easily track your application's flow with clean, timestamped log messages. Created by: Atikin Verse.
✨ Features
- 🎨 Colored console output – Different colors for each log level
- ⏰ Automatic timestamps – Every log includes precise timing
- 📁 File logging – Optional log saving to files
- 🪶 Lightweight – Zero external dependencies
- 🚀 Simple setup – One-line import and ready to use
- 🔧 Customizable – Configure colors, files, and formats
📦 Installation
pip install atikin-logger
🎯 Quick Start
from atikin_logger import log
log.info("Application started successfully")
log.success("User authentication completed")
log.warning("Disk space is running low")
log.error("Failed to connect to database")
log.debug("Variable x = 42")
Console Output (with colors ✨):
[2025-08-28 14:20:11] [INFO] Application started successfully
[2025-08-28 14:20:11] [SUCCESS] User authentication completed
[2025-08-28 14:20:11] [WARNING] Disk space is running low
[2025-08-28 14:20:11] [ERROR] Failed to connect to database
[2025-08-28 14:20:11] [DEBUG] Variable x = 42
🛠 Advanced Usage
Custom Logger Instance (File Logging)
from atikin_logger import Logger
log = Logger(log_file="logs/app.log")
log.info("This message appears in console and saves to file")
log.error("Error details are also saved for debugging")
Disable Colors
from atikin_logger import Logger
log = Logger(use_colors=False)
log.info("This message has no colors")
Multiple Logger Instances
from atikin_logger import Logger
db_logger = Logger(log_file="logs/database.log")
api_logger = Logger(log_file="logs/api.log")
db_logger.info("Database connection established")
api_logger.debug("API request received: /users")
📚 API Reference
Logger Class
Logger(log_file=None, use_colors=True)
Parameters:
log_file (str, optional)– Save logs to a file if provided.use_colors (bool)– Enable/disable colored output (default: True).
Log Methods
| Method | Description | Color |
|---|---|---|
log.info() |
Informational messages | 🔵 Blue |
log.success() |
Success notifications | 🟢 Green |
log.warning() |
Warning messages | 🟡 Yellow |
log.error() |
Error reports | 🔴 Red |
log.debug() |
Debug information | 🟣 Purple |
🧪 Examples
Example 1 – Basic Application Logging
from atikin_logger import log
def main():
log.info("Starting application...")
try:
log.success("Application started successfully")
except Exception as e:
log.error(f"Application failed: {str(e)}")
log.info("Application shutdown")
if __name__ == "__main__":
main()
Example 2 – Web Server Logging
from atikin_logger import Logger
server_log = Logger(log_file="logs/server.log")
def handle_request(request):
server_log.info(f"Request received: {request.path}")
if request.method == "POST":
server_log.debug(f"POST data: {request.data}")
server_log.success("Request processed successfully")
Example 3 – Error Tracking
from atikin_logger import log
def process_data(data):
try:
result = complex_operation(data)
log.success("Data processed successfully")
return result
except ValueError as e:
log.warning(f"Data validation issue: {e}")
return None
except Exception as e:
log.error(f"Unexpected error in process_data: {e}")
raise
❓ FAQ
Q: Works on all OS? A: ✅ Yes, Windows, macOS, Linux. Colors auto-disable if not supported.
Q: Custom log format?
A: 🚧 Currently [timestamp] [LEVEL] message. Customization planned.
Q: Disable all logging? A: Wrap log calls in a condition.
Q: Compatible with Python’s built-in logging? A: ✅ Yes, it’s standalone and non-conflicting.
🤝 Contributing
- Fork repo
- Create branch:
git checkout -b feature/awesome - Commit changes:
git commit -m 'Add awesome feature' - Push branch:
git push origin feature/awesome - Open Pull Request
📄 License
Licensed under the MIT License – see LICENSE.
🐛 Bug Reports
Please open an issue with:
- Description of bug
- Steps to reproduce
- Expected behavior
- Python version & OS
🌟 Star History
If you find this project useful, please give it a ⭐ on GitHub!
📞 Support
- Open an issue on GitHub
- Or contact: atikinverse@gmail.com
🌐 Follow Us
| Platform | Username |
|---|---|
| atikinverse | |
| atikinverse | |
| atikinverse | |
| Twitter/X | atikinverse |
| Threads | atikinverse |
| atikinverse | |
| Quora | atikinverse |
| atikinverse | |
| Tumblr | atikinverse |
| Snapchat | atikinverse |
| Skype | atikinverse |
| GitHub | atikinverse |
Metadata
Release files for atikin-logger 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atikin-logger-0.1.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atikin_logger-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / atikin-logger-0.1.0.tar.gz
| Download URL | atikin-logger-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c67d50136f08ac94e0eaeef20ae59794d1f427ac90c151e07a455a6a820b003b
|
|
BLAKE2b-256 checksum How to use checksums |
7ff8b854f8e96ac2a2db60b0522f719a93b9f9cf14b905db85007f740daaa60b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Release files / atikin_logger-0.1.0-py3-none-any.whl
| Download URL | atikin_logger-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2faa9f8ddcc1247886138e00164303eeeb442307696f6b1df265913a33fd5586
|
|
BLAKE2b-256 checksum How to use checksums |
1274e0e6e90a08c466670b527f49a8049a4ebf62470369b0b56ddf0cb7424fa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|