Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an endOfLine option to the console transport #700

Closed
wants to merge 2 commits into from

Conversation

aquavitae
Copy link
Contributor

It would sometimes be useful to be able to customise the EOL character used by the Console transport. My use case is where I want to log a task as started, then add a check once it's completed. Setting endOfLine to '' would allow this:

log.info('Running task... ');
doTask();
log.info('done\n');

An alternative would be to allow setting the end-of-line character per log (e.g. log.info('Running task...', {eol: ''})), but I don't see a sane way of doing that while allowing string interpolation.

@indexzero
Copy link
Member

Let's rename this eol to be consistent with the file transport

@indexzero indexzero added Feature Request Request for new functionality to support use cases not already covered next-minor labels Oct 9, 2015
@indexzero
Copy link
Member

Cherry-picked into 2.x. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Request for new functionality to support use cases not already covered
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants