Skip to content

absolvent/abso-winston-mysql-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

abso-winston-mysql-transport

Winston transport implementation for using with mysql databases.

Dependencies

Usage

const winston = require('winston');
const MySQLTransport = require('abso-winston-mysql-transport').WinstonMySQLTransport;
const logger = new winston.Logger({
    transports: [
        new MySQLTransport(
            {... options_here ...}
        )
    ]
});

Options structure

{
    level?: string (='info'),
    tableName?: string (='winston_log'),
    label?: string (=''),
    connection: {
        host: string,
        port: integer,
        database: string,
        username: string,
        password: string,
        charset?: string (='utf8'),
        collation?: string (='utf8_polish_ci')
    }
}

About

MySQL transport for Winston

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published