tslog
tslog copied to clipboard
📝 tslog - Universal Logger for TypeScript and JavaScript
**Describe the bug** a undefined not handle by `prettyFormatErrorObj` then call the `getErrorTrace` . **Screenshots**  **To Reproduce** this is a large project, so i checked into the code. and...
fix `Cannot read properties of undefined (reading 'map') at prettyFormatErrorObj` . https://github.com/fullstack-build/tslog/issues/311
`fileNameWithLine` is meant to be part of the settings as per the docs, but it was accidentally omitted in the type definition. To avoid this kind of error, I also...
**Describe the bug** Currently, `tslog` will request the `process.cwd` (even if it's not required for the log format) used. You can see this [here](https://github.com/fullstack-build/tslog/blob/9a5d15696ae813142b64a21f42987e59e7115448/src/runtime/nodejs/index.ts#L88) The problem with this is that...
`tslog` comes with some default log levels for `info`/`warn`/etc. The problem is that if you're using tslog with custom log severities, things like `log.info` may stop working and outputs nothing....
import { Logger, ILogObj } from "tslog"; ^^^^^^^ SyntaxError: The requested module 'tslog' does not provide an export named 'ILogObj'
after use polyfill to all environment, at node.js it couldn't override prettyInspectOptions to ctx. fix: https://github.com/fullstack-build/tslog/issues/327
**Description / Use Case for a Feature** Please, add method to detach attached transport by attachTranport method. For example: `logger.detachTransport(transport);`
**Describe the bug** Since release 4.10.x, the `prettyInspectOptions` in templates no longer applied it seems. Other options like `prettyLogTemplate` still work fine, it's just the `prettyInspectOptions` that seem to be...
This PR introduces the `prettyLogLevelMethod` setting to tslog, allowing users to map log levels to specific console methods (such as console.warn, console.error, etc.) when using "pretty" log output. **Features** `prettyLogLevelMethod`...