src/klass/Logger.js
function(context,args,error,color){
			var me = this,
				base = context.getCalledKlass(),
				contextName = base ? base.getName() : CONSTANTS.LOGGER.UNKNOWN_NAME,
				methodName = context.getCalledName() || CONSTANTS.LOGGER.ANONYMOUS_NAME,
				messages = me.toMessages(args);

			color = color || (error ? CONSTANTS.LOGGER.EXCEPTION_COLOR : CONSTANTS.LOGGER.SUCCESS_COLOR);

			if (context) {
				if (context.deepLoggingLevel || methodName == CONSTANTS.LOGGER.ANONYMOUS_NAME) {
					var deepTrace = me.analyze(context);

					console.groupCollapsed.apply(console,[('[node-klass-logger] ' + contextName + '.' + methodName + messages.join(' '))[color]].concat(args));
					console.log(('[node-klass-logger] ' + deepTrace)[color]);
					console.groupEnd();
				} else {
					console.log.apply(console,[('[node-klass-logger] ' + contextName + '.' + methodName + messages.join(' '))[color]].concat(args));
				}
			} else {
				console.log.apply(console,[('[node-klass-logger]' + messages.join(' '))[color]].concat(args));
			}
		}
function(context,args,error,color){
			var me = this,
				base = context.getCalledKlass(),
				contextName = base ? base.getName() : CONSTANTS.LOGGER.UNKNOWN_NAME,
				methodName = context.getCalledName() || CONSTANTS.LOGGER.ANONYMOUS_NAME,
				messages = me.toMessages(args);

			color = color || (error ? CONSTANTS.LOGGER.EXCEPTION_COLOR : CONSTANTS.LOGGER.SUCCESS_COLOR);

			if (context) {
				if (context.deepLoggingLevel || methodName == CONSTANTS.LOGGER.ANONYMOUS_NAME) {
					var deepTrace = me.analyze(context);

					console.groupCollapsed.apply(console,[('[node-klass-logger] ' + contextName + '.' + methodName + messages.join(' '))[color]].concat(args));
					console.log(('[node-klass-logger] ' + deepTrace)[color]);
					console.groupEnd();
				} else {
					console.log.apply(console,[('[node-klass-logger] ' + contextName + '.' + methodName + messages.join(' '))[color]].concat(args));
				}
			} else {
				console.log.apply(console,[('[node-klass-logger]' + messages.join(' '))[color]].concat(args));
			}
		}
function ( context , args , error , color ) { var me = this , base = context . getCalledKlass ( ) , contextName = base ? base . getName ( ) : CONSTANTS . LOGGER . UNKNOWN_NAME , methodName = context . getCalledName ( ) || CONSTANTS . LOGGER . ANONYMOUS_NAME , messages = me . toMessages ( args ) ; color = color || ( error ? CONSTANTS . LOGGER . EXCEPTION_COLOR : CONSTANTS . LOGGER . SUCCESS_COLOR ) ; if ( context ) { if ( context . deepLoggingLevel || methodName == CONSTANTS . LOGGER . ANONYMOUS_NAME ) { var deepTrace = me . analyze ( context ) ; console . groupCollapsed . apply ( console , [ ( '[node-klass-logger] ' + contextName + '.' + methodName + messages . join ( ' ' ) ) [ color ] ] . concat ( args ) ) ; console . log ( ( '[node-klass-logger] ' + deepTrace ) [ color ] ) ; console . groupEnd ( ) ; } else { console . log . apply ( console , [ ( '[node-klass-logger] ' + contextName + '.' + methodName + messages . join ( ' ' ) ) [ color ] ] . concat ( args ) ) ; } } else { console . log . apply ( console , [ ( '[node-klass-logger]' + messages . join ( ' ' ) ) [ color ] ] . concat ( args ) ) ; } }
Default print function to show context messages
Default print function to show context messages