How to use the default function from winston

Find comprehensive JavaScript winston.default code examples handpicked from public code repositorys.

20
21
22
23
24
25
26
27
28
29
// Logging in Aws Cloudwatch
var loggerAWS = function (data, type) {
    var _a, _b, _c, _d;
    if (type === void 0) { type = "info"; }
    data = fixData(data);
    winston_1.default.add(new winston_cloudwatch_1.default({
        awsOptions: {
            credentials: {
                accessKeyId: (_a = process.env) === null || _a === void 0 ? void 0 : _a.AWS_ACCESS_ID,
                secretAccessKey: (_b = process.env) === null || _b === void 0 ? void 0 : _b.AWS_ACCESS_KEY,
fork icon0
star icon0
watch icon0

+ 2 other calls in file