 
 
 logBeforeExecution = (methodName, scope, args) ->
-	console.log "#{methodName} [will call]".cyan
+	if Meteor.registerLogs isnt true
+		return
+
+	console.log "#{methodName}".cyan
+
+	if Meteor.registerVerboseLogs isnt true
+		return
+
 	if scope?
 		console.log '  > SCOPE'.cyan
 		console.log formatJsonWithPrefixAndColor removeInternalProperties(scope), '  | ', 'cyan'

BeforeMethods = {}
AfterMethods = {}


formatJsonWithPrefixAndColor = (value, prefix, color) ->
	value = JSON.stringify value, null, '  '

		console.log formatJsonWithPrefixAndColor args, '  | ', 'cyan'

logAfterExecution = (methodName, scope, args, result) ->
	if Meteor.registerLogs isnt true
		return

	console.log "#{methodName} [done]".cyan

	if Meteor.registerVerboseLogs isnt true
		return

	if scope?
		console.log '  > SCOPE'.cyan
		console.log formatJsonWithPrefixAndColor removeInternalProperties(scope), '  | ', 'cyan'
	if args?
		console.log '  > ARGUMENTS'.cyan
		console.log formatJsonWithPrefixAndColor args, '  | ', 'cyan'
	if result?
		console.log '  > RESULT'.cyan
		console.log formatJsonWithPrefixAndColor args, '  | ', 'cyan'

processResult = (result) ->
	if _.isObject(result) and _.isFunction(result.fetch)
