tslog icon indicating copy to clipboard operation
tslog copied to clipboard

📝 tslog - Universal Logger for TypeScript and JavaScript

Results 106 tslog issues
Sort by recently updated
recently updated
newest added

**Describe the bug** mongodb use findOneAndUpdate second time trigger duplicate key error, logger this error fail. **To Reproduce** Steps to reproduce the behavior: mongo db 4.0.3 shard mode package.json ```json...

bug

**Description / Use Case for a Feature** While overriding transports for JSON, the transportJSON function exposes a json that is typed as an unknown. Why is that? It's really difficult...

enhancement

Hello! I've got an error "TypeError: Cannot set property message of Error which has only a getter" Complete stacktrace: ``` at node_modules/tslog/dist/cjs/BaseLogger.js:179:45 at Array.reduce () at Logger._recursiveCloneAndMaskValuesOfKeys (node_modules/tslog/dist/cjs/BaseLogger.js:178:70) at node_modules/tslog/dist/cjs/BaseLogger.js:157:25...

bug

**Description / Use Case for a Feature** I appears that this is gone from the new code. In the old code you could construct the logger with a string based...

enhancement

**Description / Use Case for a Feature** The new version of TSLog boasts the ability to "overwrite pretty much every aspect of the log processing"; however, while technically true, it...

enhancement

Can someone please help me set tslog in webpack? I set in my webpack.config inline source maps like this: ![image](https://user-images.githubusercontent.com/43521521/223736860-8a4caa68-6f28-4594-9a7e-f112bc42b645.png) and in my tsconfig: ![image](https://user-images.githubusercontent.com/43521521/223737142-0f6c6c5f-fdda-4f7f-96d6-c2a6e058979f.png) but all of my logs...

**ignoreStackLevels support for v4** Previous major version (v3) had the `ignoreStackLevels` option, which enabled me to do things like log the place where a common function was called from _inside_...

enhancement

I would like to customize the pretty format and the json format in ways not currently supported. 1. I cannot create a pretty format that is json as I cannot...

enhancement

This isn't a bug, but I just wanted to document somewhere that to get tslog to work inside of [NextJS middleware](https://nextjs.org/docs/pages/building-your-application/routing/middleware) (which uses [the Edge runtime](https://nextjs.org/docs/pages/api-reference/edge), which is neither Node...

**Describe the bug** When the logger attempts to report an error thrown by a native Node `AbortController`, it appears to crash expecting a `DOMException`. **To Reproduce** Steps to reproduce the...

bug