Skip to content

Added functionality to append objects to the original log message#3

Open
saesh wants to merge 2 commits intonaorye:masterfrom
saesh:master
Open

Added functionality to append objects to the original log message#3
saesh wants to merge 2 commits intonaorye:masterfrom
saesh:master

Conversation

@saesh
Copy link
Copy Markdown

@saesh saesh commented Jul 9, 2015

Objects can be added to log messages and hours, minutes and seconds less than 10 are printed with prepended zeros.

Add objects to the supplant array and they will be logged as well as long as they are out of the index of the curly braces:

logger.info('this object caused trouble at line {0}:', ['18', {'foo': 'bar'}]);

saesh added 2 commits July 9, 2015 21:16
Objects can be appended to log messages as part of the supplant array:

logger.info('this object caused at line {0} caused trouble:', ['18', {'foo': 'bar'}]);

All objects not being referenced in the supplant array by the curly brackets are being logged at the end of the message. The original functionality is preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant