tslog icon indicating copy to clipboard operation
tslog copied to clipboard

Feature Request: Align overwrite function signatures with default method definitions

Open mohantejach opened this issue 2 months ago • 0 comments

Thanks for the great logger library.

While reviewing the tslog codebase, I noticed that the overwrite functions such as formatMeta and addMeta do not receive the settings object, whereas the default implementations do.

I’m trying to implement custom overrides for these functions, but without access to settings it’s difficult to replicate or extend the behavior of the default methods.

Would it make sense for the overwrite functions to follow the same method signature as the default ones, including the settings parameter?

Examples :

addMeta vs _addMetaToLogObj

Image

formatMeta vs _prettyFormatLogObjMeta

Image

I’m happy to help and can open a pull request if this change sounds reasonable.

Thanks for considering this enhancement.

mohantejach avatar Nov 09 '25 15:11 mohantejach