tslog
tslog copied to clipboard
📝 tslog - Universal Logger for TypeScript and JavaScript
**Remove the window.chrome interface declaration** Somewhere in the code there is the following: ``` declare global { interface Window { chrome?: unknown; } } ``` This interferes with typing of...
**Description / Use Case for a Feature** I often times want only to log something if an action fails. It would make my code a lot cleaner if i could...
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.1.2 to 4.2.19. Release notes Sourced from svelte's releases. [email protected] Patch Changes fix: ensure typings for <svelte:options> are picked up (#12902) fix: escape < in attribute strings...
**Description / Use Case for a Feature** I want to use different log level in console e.g. `console.error | warn | info`, and your docs gives a [example](https://tslog.js.org/#/?id=example-of-sending-logs-to-console-instead-of-the-standard-output): ```typescript const...
**Describe the bug** When logging client-side, the logs show ANSI sequences (car sequences for colors, font weights, ...) instead of the the effect of that sequence (like it is on...
Considering code using `new Error("xxx", { cause: error })` to chain error, for example: ``` function a() { throw new Error("Oops") } function b() { try { a() } catch...
**Describe the bug** Both console log and loglevel, and debug, manage to parse source maps (I think that's the issue?) to create a clear stack trace with hyper links, but...
The README file contained a code example that appeared to have a copy-paste issue, likely from a different context. I tested out locally to verify that the imports resolved correctly....
**Describe the bug** Reading through the README documentation I was looking at custom logging examples. I noticed the import was from a 'base' logger but the imported types came from...
**Describe the bug** TypeError undefined is not an object (evaluating 'getErrorTrace(error).map') on custom errors **To Reproduce** Steps to reproduce the behavior: console.log(err, String(err), String(typeof err)); logger.error( `Error in custom middleware:...