ctstone / winston-azure-storage-transport Goto Github PK
View Code? Open in Web Editor NEWAzure Storage transport for winston >= 3
Azure Storage transport for winston >= 3
When passing an object with circular references to the logger (such as the error thrown by the axios library when a connection times out), this fatal error is dumped to console and the process crashes. This inability to handle circular references is a known issue with JSON.stringify. In this case, it's line 46 of blob-transport.ts:
const text = tasks.map((x) => JSON.stringify(x)).join('\n') + '\n';
This is an issue that the winston library had in several cases this year, and they resolved it by switching from JSON.stringify to fast-safe-stringify, which is a drop-in replacement to address this exact issue.
Please consider switching.
Hi,
I'm facing this error when I try to build my app :
node_modules/winston-azure-storage-transport/dist/blob-transport.d.ts:2:10 - error TS2305: Module '"../../../../../../../../../Users/me/Documents/dev/projets/test/node_modules/winston-transport"' has no exported member 'LogFunction'.
2 import { LogFunction, TransportStreamOptions } from 'winston-transport'; ~~~~~~~~~~~Found 1 error.
As far as I can see,
Winston-transport seems to have the definition types included from now : https://github.com/winstonjs/winston-transport/blob/master/index.d.ts
"LogFunction" has been renamed to "log" :
declare namespace TransportStream { type LogFunction = (message: any, callback: (err?: Error) => void) => void; type LogvFunction = (message: any[], callback: (err?: Error) => void) => void;
to
declare namespace TransportStream { interface TransportStreamOptions { format?: logform.Format; level?: string; silent?: boolean; handleExceptions?: boolean; log?(info: any, next: () => void): any; logv?(info: any, next: () => void): any; close?(): void; } }
Any luck to have an update please ?
Tks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.