Merge pull request #268 from askhogan/master

Allow for blank tokens due to dynamic data
This commit is contained in:
Gareth Jones
2015-01-10 15:22:24 +11:00
2 changed files with 4 additions and 6 deletions

View File

@@ -295,9 +295,7 @@ function patternLayout (pattern, tokens) {
} else {
// Create a raw replacement string based on the conversion
// character and specifier
var replacement =
replaceToken(conversionCharacter, loggingEvent, specifier) ||
matchedString;
var replacement = replaceToken(conversionCharacter, loggingEvent, specifier);
// Format the replacement according to any padding or
// truncation specified