mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-23 12:50:40 +08:00
first batch: the easy pickings - as per https://github.com/borisyankov/DefinitelyTyped/issues/115 - added DT headers (scraped creators from git history) - added tests - some modifications - added CONTRIBUTORS.md for the substantial defs (>50 LOC)
41 lines
814 B
TypeScript
41 lines
814 B
TypeScript
/// <reference path="winston.d.ts" />
|
|
|
|
import winston = require('winston');
|
|
|
|
var str: string;
|
|
var bool: boolean;
|
|
var metadata: any;
|
|
var options: any;
|
|
var value: any;
|
|
var transport: winston.Transport;
|
|
|
|
transport = winston.transports.File;
|
|
transport = winston.transports.Console;
|
|
transport = winston.transports.Loggly;
|
|
|
|
winston.log(str, str);
|
|
winston.log(str, str, metadata);
|
|
winston.debug(str);
|
|
winston.debug(str, metadata);
|
|
winston.info(str);
|
|
winston.info(str, metadata);
|
|
winston.warn(str);
|
|
winston.warn(str, metadata);
|
|
winston.error(str);
|
|
winston.error(str, metadata);
|
|
|
|
winston.add(transport, options);
|
|
winston.remove(transport);
|
|
|
|
winston.profile(str);
|
|
|
|
winston.query(options, (err: any, results: any) => {
|
|
|
|
});
|
|
|
|
value = winston.stream(options);
|
|
|
|
winston.handleExceptions(transport);
|
|
winston.exitOnError = bool;
|
|
|