Skip to content

Instantly share code, notes, and snippets.

@nompute
Created March 22, 2011 03:54
Show Gist options
  • Save nompute/880747 to your computer and use it in GitHub Desktop.
Save nompute/880747 to your computer and use it in GitHub Desktop.
Adding support for colouredLayout in log4js-node
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