Comments (1)
Hi @imsamdez,
Thank you for reaching out!
You can pass throwExceptions: true
option to make the library throw exceptions. You should be able to catch the errors then to prevent them from creating noise in your logs. Alternatively, you can use ignoreExceptions: true
option to make the library ignore errors.
Let me know if this would work for you. 🙏
// If true, errors when sending logs will be ignored
// Has precedence over throwExceptions
ignoreExceptions: false,
// If true, errors when sending logs will result in a thrown exception
throwExceptions: false,
https://github.com/logtail/logtail-js/blob/master/packages/core/src/base.ts#L39
from logtail-js.
Related Issues (20)
- feature request: sourcemap support HOT 2
- Add ability to color log outputs HOT 6
- How to override behavior for localhost HOT 4
- Logtail blocked by adblocker HOT 3
- MaxListenersExceededWarning: Possible EventEmitter memory leak detected. HOT 4
- Logtail fails gh-action workflows on a javascript boilerplate HOT 3
- Disable @logtail/edge's warning about missing executionCtx when the runtime is not Cloudflare HOT 5
- Improve `context.runtime.file` when `logtail` is called indirectly HOT 4
- Use serialize-error library to seralize errors instead of manually creating an object HOT 5
- React Native support HOT 3
- logging a lot of data quickly causes a ton of errors HOT 4
- Flutter support? HOT 1
- automatic capture of console logging calls, e.g. `console.log` HOT 1
- @logtail/pino in nextjs HOT 3
- Disable logging in development mode? HOT 3
- Sveltekit example? HOT 1
- Issue with pino and logtail when using multiple transports HOT 3
- @logtail/pino can't be flushed in serverless environments HOT 1
- [Node]: [ReferenceError: XMLHttpRequest is not defined] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logtail-js.