Comments (2)
from logtail-js.
Every line that's logged has an extra string added to it. Everything starting with the 9 and ending with the 48. How do I get rid of this? ` 2021-11-13 14:34:50.983 [qa] [INFO] 9 ../task/node_modules/@logtail/winston/dist/cjs/winston.js 48 --> POST /api/stripe
2021-11-13 14:34:51.219 [qa] [INFO] 9 ../task/node_modules/@logtail/winston/dist/cjs/winston.js 48 Processing Stripe Event: invoice.created. 2021-11-13 14:34:51.268 [qa] [INFO] 9 ../task/node_modules/@logtail/winston/dist/cjs/winston.js 48 <-- [204] POST /api/stripe 286ms `
These are the Winston options I have set:
winston.createLogger({ level: 'debug', // change to info for prod? format: winston.format.combine( winston.format.colorize(), winston.format.align(), winston.format.splat(), winston.format.timestamp({ format: customTimeStamp() }), winston.format.printf(customFormat), winston.format.errors({ stack: true }), //winston.format.json() use for non-local? ) })
Custom format:
const customFormat = log => { const pattern = /(error|warn|info|http|verbose|debug|silly)/s let level = log.level.match(pattern) if (level) { level = log.level.replace(pattern, level[0].toUpperCase()) } return log.stack ?
${log.timestamp} [${level}]: ${log.message}\n${log.stack}:
${log.timestamp} [${level}]: ${log.message}}
Hi Jo (@jojobean13)! Thanks a lot for your question, and I'm sorry we didn't reply sooner. I believe what you describe here is the Live Tail section of Logtail. You can go to Sources -> advanced settings, and change the fields displayed there by modifying the Live Tail primary fields section of the settings. That should help! π
EDIT: I'm closing the thread, but will keep watch - feel free to ping me here if you have any further questions!
from logtail-js.
Related Issues (20)
- Document releases HOT 1
- Handle circular reference stringifying HOT 4
- Version 0.3.0 break lib. HOT 2
- Add data scrubbing for sensitive fields HOT 1
- Uncaught ReferenceError: process is not defined HOT 1
- Cannot find module '@babel/generator' HOT 2
- Question: API query helper HOT 1
- Connection error throws and breaks execution HOT 5
- Invalid peer dependency specified in logtail/winston package HOT 2
- Unauthorized error on logs HOT 4
- Error logging with 0.4.0 HOT 3
- `await logtail.flush()` hangs (does not properly resolve) in v0.4.0 HOT 3
- support for edge environments (Cloudflare Workers, Vercel Serverless, etc) HOT 7
- 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
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.