/**
 * test case for /lib/support/logger module
 */
var vows = require('vows'), assert = require('assert');
var logger = require('../../../../lib/support/logger');

var logMessage1 = '[2013-11-18 10:37:14.588] [INFO] [Zenith] -  Starting Zenith ESB ..... ';
var logMessage2 = '[2013-11-18 10:38:45.425] [DEBUG] [ServiceView] - Start of View method';
var logMessage3 = '[2013-11-18 10:39:56.392] [ERROR] [WSEndPoint] - problem with request: connect ECONNREFUSED';

vows.decribe ('Zenith log message type INFO').addBatch({
	'Logger' : {
		topic:function(){
			return logger.trace;
		},
		'we get INFO': function(topic){
			assert.equal(topic,'INFO');
		}
	}
}
		).run();

vows.decribe ('Zenith log message type DEBUG').addBatch({
	'Logger' : {
		topic:function(){
			return logger.debug;
		},
		'we get INFO': function(topic){
			assert.equal(topic,'DEBUG');
		}
	}
}
		).run();

vows.decribe ('Zenith log message type ERROR').addBatch({
	'Logger' : {
		topic:function(){
			return logger.trace;
		},
		'we get INFO': function(topic){
			assert.equal(topic,'ERROR');
		}
	}
}
		).run();
@@ -134,35 +134,32 @@
 '../
-../../../lib/support/logger
+configuration/log_config
 ');%0D
@@ -463,38 +463,38 @@
 SED';%0D%0A%0D%0Avows.de
+s
 cribe
- 
 ('Zenith log mes
@@ -478,36 +478,32 @@
 escribe('Zenith 
-log 
 message type INF
@@ -498,21 +498,16 @@
 age type
- INFO
 ').addBa
@@ -519,233 +519,33 @@
 %0D%0A%09'
-Logger' : %7B%0D%0A%09%09topic:function()%7B%0D%0A%09%09%09return logger.trace;%0D%0A%09%09%7D,%0D%0A%09%09'we get INFO': function(topic)%7B%0D%0A%09%09%09assert.equal(topic,'INFO');%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0A%09%09).run();%0D%0A%0D%0Avows.decribe ('Zenith log message type DEBUG').addBatch(%7B%0D%0A%09'Logger
+Http Server configuration
 ' : 
@@ -546,33 +546,35 @@
 on' : %7B%0D%0A%09%09topic
-:
+ : 
 function()%7B%0D%0A%09%09%09
@@ -559,32 +559,33 @@
 pic : function()
+ 
 %7B%0D%0A%09%09%09return log
@@ -592,257 +592,44 @@
 ger.
-debug;%0D%0A%09%09%7D,%0D%0A%09%09'we get INFO': function(topic)%7B%0D%0A%09%09%09assert.equal(topic,'DEBUG')
+logLevel
 ;%0D%0A%09%09%7D
-%0D%0A%09%7D
+,
 %0D%0A
-%7D
 %0D%0A%09%09
-).run();%0D%0A%0D%0Avows.decribe ('Zenith log message type ERROR').addBatch(%7B%0D%0A%09'Logger' : %7B%0D%0A%09%09topic:function()%7B%0D%0A%09%09%09return logger.trace;%0D%0A%09%09%7D,%0D%0A%09%09'we get INFO'
+'we get DEBUG' 
 : fu
@@ -641,16 +641,17 @@
 n(topic)
+ 
 %7B%0D%0A%09%09%09as
@@ -668,21 +668,21 @@
 (topic,'
-ERROR
+DEBUG
 ');%0D%0A%09%09%7D
@@ -688,20 +688,16 @@
 %7D%0D%0A%09%7D%0D%0A%7D
-%0D%0A%09%09
 ).run();

test cse to test log level