New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mysql-logger

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysql-logger

A simple logger class for MySQL and MariaDB

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

MySQLLogger

A simple logger class for MySQL and MariaDB

Installation
$ pip install mysql-logger
Usage example
from mysql_logger import MySQLLogger

# DB must be created before
db_settings = {
    'user': 'username',
    'password': 'Pa55w0rd',
    'host': 'localhost',
    'port': 3306,
    'database': 'my_log_db'
}

# Table will be automatically created (if not exists)
table_name = 'software_name'

# Initialize the logger
logger = MySQLLogger(db_settings, table_name)

# Log messages
logger.info('log info level message')
logger.error('log error level message')

Dependencies
  • asyncio v3.4.3
  • aiomysql v0.0.21
  • PyMySQL v0.9.3

Changes

v0.0.1 (2021-10-05)

  • Initial release.
  • Logger levels: debug, info, warning, error.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc