Created
March 22, 2011 03:54
-
-
Save nompute/880747 to your computer and use it in GitHub Desktop.
Adding support for colouredLayout in log4js-node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/log4js.js b/lib/log4js.js | |
index 3785b84..d78e200 100644 | |
--- a/lib/log4js.js | |
+++ b/lib/log4js.js | |
@@ -84,6 +84,8 @@ appenderMakers = { | |
layoutMakers = { | |
"messagePassThrough": function() { return messagePassThroughLayout; }, | |
"basic": function() { return basicLayout; }, | |
+ "colored": function() { return colouredLayout; }, | |
+ "coloured": function() { return colouredLayout; }, | |
"pattern": function (config) { | |
var pattern = config.pattern || undefined; | |
return patternLayout(pattern); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment