mathew-kurian / Scribe.js

:scroll: Node.js logging made simple! Online access to logs and more...
https://mathew-kurian.github.io/Scribe.js/
MIT License
284 stars 45 forks source link

Prompt text appear to a right side on Mac #96

Open andoniabedul opened 7 years ago

andoniabedul commented 7 years ago

SO: macOS Sierra Scribe-js Version: 2.0.4 NPM Version: 4.0.5 Node Version: 6.8.1

On any terminal using Mac with zsh my logs of console.log and console.info appear like this: captura de pantalla 2017-03-04 a las 12 58 01 p m

Why the prompt text appear to a right side? This is normal or it's a problem of my configuration? I launched the same app on Windows and on the cmd the prompt text it appear aligned, on the center aligned with the command prompt.

andoniabedul commented 7 years ago

I found the cause of this behavior: The default of opt.contextMediumSize on console2.js it's 45. Why 45? I was commenting that behavior don't happen on Windows, but on Mac (using zsh) this actually happen. I change the default to 0 and everything on the log appears fine.