Create a Logs Project
Create a Logs Project
ByteHide Logs helps you capture, analyze, and manage application logs in Python with enterprise-grade features like log rotation, filtering, and sensitive data masking.
Getting Started
To start logging in your Python application:
- Create a Project - Sign up on the ByteHide Dashboard and create a new Logs project
- Get Your Token - Copy your project token from the project settings
- Install the SDK - Add the
bytehide-logspackage to your application - Configure Logging - Set up logging with your project token and desired outputs
Quick Setup
Python
from bytehide_logs import Log, LogSettings
# Set your project token
Log.set_project_token("your-project-token")
# Initialize with default settings
Log.initialize(LogSettings(console_enabled=True))
# Start logging
Log.info("Application started successfully")from bytehide_logs import Log, LogSettings
# Set your project token
Log.set_project_token("your-project-token")
# Initialize with default settings
Log.initialize(LogSettings(console_enabled=True))
# Start logging
Log.info("Application started successfully")Key Features
- Multiple Output Targets - Log to console, files, or both
- Intelligent Rotation - Automatic log file rotation by time or size
- Log Levels - Control verbosity with DEBUG, INFO, WARN, ERROR, and CRITICAL levels
- Sensitive Data Protection - Automatically mask credentials and PII
- Contextual Logging - Add tags, correlation IDs, and custom context
- User Identification - Track logs by authenticated users
- Performance - Minimal overhead with async operations
- Environment Integration - Works with Docker, Kubernetes, and cloud platforms
Documentation Structure
- Installation - Add bytehide-logs to your project
- Configuration - Configure LogSettings and behavior
- Quick Start - Get logging running in minutes
- Project Token - Securely manage your credentials
- Log Levels - Filter logs by severity
- Console Output - Direct logging to console
- File Logging - Write logs to rotating files
- Environment Variables - Configure via environment
- Disable Logging - Control logging at runtime
What's Next?
Choose your next step based on your needs:
- New to ByteHide Logs? Start with Installation
- Ready to log? Jump to Quick Start
- Need specific features? Check out the configuration guides
Support
For issues, questions, or feature requests, visit the ByteHide Support Portal.