Permalink
Browse files

[examples] Added simple example for raw mode

  • Loading branch information...
1 parent c506b03 commit 0efd268162a0746d79abf83cc5615c36afd398ca @Marak Marak committed Mar 23, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 examples/raw-mode.js
View
@@ -0,0 +1,10 @@
+var winston = require('../lib/winston');
+
+var logger = new (winston.Logger)({
+ transports: [
+ new (winston.transports.Console)({ raw: true }),
+ ]
+});
+
+logger.log('info', 'Hello, this is a raw logging event', { 'foo': 'bar' });
+logger.log('info', 'Hello, this is a raw logging event 2', { 'foo': 'bar' });

0 comments on commit 0efd268

Please sign in to comment.