tslog
tslog copied to clipboard
📝 tslog - Universal Logger for TypeScript and JavaScript
I successively followed the `RequestId` section in the readme. I have now a `requestId` field in my `logObj`. But if I try to overwrite `formatLogObj` to display the requestId in...
I've tried TSLog for a while and pretty happy with it but I have noticed that when the error is logged using the `log.error()` method, the stack trace output in...
**Use browser stacktrace for warn/error** Is possible customize warn and error levels like using console.warn() and console.error() that when called, browser show a grouped stacktrace that can be expanded.
I have an issue while running tslog within aws SAM. I am getting this kind of squashed output:  While running it outside of SAM I am...
I run an example file transport and see what's happens. ``` logger.attachTransport((logObj) => { appendFileSync( path.resolve(process.cwd(),'./log',"logs.json"), JSON.stringify(logObj) + "\n"); }); ``` the conclusion does not look readable at all can...
**Describe the bug** When running the example in the docs [here](https://tslog.js.org/#/?id=simple-example) I get the following output in the browser: **To Reproduce** 1. Start a new vite project (`yarn create vite...
I have a somewhat unique logging need for a project and this appears perfect. The project has a collection of isomorphic TypeScript libraries (node and browser) and I'm using ES...
Hey, first of all congrats on an amazing library, we really love it and want to use it everywhere we can. Currently I am looking at implementing a react-native runtime...
**Describe the bug** Demo Script: ```typescript import {Logger} from 'tslog'; import dayjs from 'dayjs'; const logTemplate = '{{rawIsoStr}}\t{{logLevelName}}\t[{{filePathWithLine}}{{name}}]\t'; const log = new Logger({prettyLogTemplate: logTemplate, prettyLogTimeZone: 'local'}); const test = dayjs().format('YYYY-MM-DDTHH:mm:ssZ[Z]');...
**Description / Use Case for a Feature** https://github.com/fullstack-build/tslog/blob/5e21e7392a0426c22c99fa7a039e7a029b890c9c/src/runtime/nodejs/index.ts#L29-L36 Currently the `getMeta()` function is stacked with 4 required and 2 trailing positional args, which means the order will shuffle if a...