Merge pull request #82 from ohdatboi/log-colour-fix

Fix logger colours to make it look good on terminals with black and white background
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2018-06-13 10:24:14 +02:00 committed by GitHub
commit 79f74532a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -295,9 +295,9 @@ final class FileLogger : Logger {
final switch (msg.level) { final switch (msg.level) {
case LogLevel.trace: dst.put("\x1b[49;38;5;243m"); break; case LogLevel.trace: dst.put("\x1b[49;38;5;243m"); break;
case LogLevel.debugV: dst.put("\x1b[49;38;5;245m"); break; case LogLevel.debugV: dst.put("\x1b[49;38;5;245m"); break;
case LogLevel.debug_: dst.put("\x1b[49;38;5;248m"); break; case LogLevel.debug_: dst.put("\x1b[49;38;5;180m"); break;
case LogLevel.diagnostic: dst.put("\x1b[49;38;5;253m"); break; case LogLevel.diagnostic: dst.put("\x1b[49;38;5;143m"); break;
case LogLevel.info: dst.put("\x1b[49;38;5;15m"); break; case LogLevel.info: dst.put("\x1b[49;38;5;29m"); break;
case LogLevel.warn: dst.put("\x1b[49;38;5;220m"); break; case LogLevel.warn: dst.put("\x1b[49;38;5;220m"); break;
case LogLevel.error: dst.put("\x1b[49;38;5;9m"); break; case LogLevel.error: dst.put("\x1b[49;38;5;9m"); break;
case LogLevel.critical: dst.put("\x1b[41;38;5;15m"); break; case LogLevel.critical: dst.put("\x1b[41;38;5;15m"); break;