 BeforeMethods = {}
 AfterMethods = {}
 
+# Meteor.registerLogs = true
+# Meteor.registerVerboseLogs = true
 
 formatJsonWithPrefixAndColor = (value, prefix, color) ->
 	value = JSON.stringify value, null, '  '

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

logAfterExecution = (methodName, scope, args, result) ->
	console.log "#{methodName} [called]".magenta
	if scope?
		console.log '  > SCOPE'.magenta
		console.log formatJsonWithPrefixAndColor removeInternalProperties(scope), '  | ', 'magenta'
	if args?
		console.log '  > ARGUMENTS'.magenta
		console.log formatJsonWithPrefixAndColor args, '  | ', 'magenta'
	if result?
		console.log '  > RESULT'.magenta
		console.log formatJsonWithPrefixAndColor args, '  | ', 'magenta'

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



logBeforeExecution = (methodName, scope, args) ->
	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'
