A MySQL transport for the winston logging library, allowing log entries to be stored in a MySQL database table. Version 0.1.2 is current; the package appears unmaintained (last commit 2015). It integrates with winston by exposing a transport that writes logs to a specified table. It does not support streaming, querying, or storing metadata. Relies on the mysql npm package. No recent updates or security patches.
npm install winston-mysql-transportNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to add the MySQL transport to winston and log a message.
Use a maintained alternative like winston-daily-rotate-file or winston-postgresql.
Customize the transport or use a different transport that supports meta.
Install mysql: npm install mysql
Migrate to winston 3.x custom transport or use compat layer.
Run npm install winston-mysql-transport
Ensure require('winston-mysql-transport').Mysql is called before using winston.transports.Mysql.Create the database or change the database option to an existing one.
Use a single transport instance or set maxListeners.