func NewCallStack() interface{} {
	return stack.Trace()
}
For logging purposes the call stack can be used to record the stack trace of a bad error
simply pass it as a context field in your log statement like
`controller.Log.Crit("This should not occur","stack",revel.NewCallStack())`
package logger
import (
	"github.com/revel/log15"
	"gopkg.in/stack.v0"
	"log"
)
var (
	toLevel = map[string]LogLevel{"debug": LogLevel(log15.LvlDebug),
		"info": LogLevel(log15.LvlInfo), "request": LogLevel(log15.LvlInfo), "warn": LogLevel(log15.LvlWarn),
		"error": LogLevel(log15.LvlError), "crit": LogLevel(log15.LvlCrit),
		"trace": LogLevel(log15.LvlDebug),  
	}
)
const (
	TEST_MODE_FLAG = "testModeFlag"
	SPECIAL_USE_FLAG = "specialUseFlag"
)
func GetLogger(name string, logger MultiLogger) (l *log.Logger) {
	switch name {
	case "trace":  
		l = log.New(loggerRewrite{Logger: logger, Level: log15.LvlDebug}, "", 0)
	case "debug":
		l = log.New(loggerRewrite{Logger: logger, Level: log15.LvlDebug}, "", 0)
	case "info":
		l = log.New(loggerRewrite{Logger: logger, Level: log15.LvlInfo}, "", 0)
	case "warn":
		l = log.New(loggerRewrite{Logger: logger, Level: log15.LvlWarn}, "", 0)
	case "error":
		l = log.New(loggerRewrite{Logger: logger, Level: log15.LvlError}, "", 0)
	case "request":
		l = log.New(loggerRewrite{Logger: logger, Level: log15.LvlInfo}, "", 0)
	}
	return l
}
var logFilterList = []struct {
	LogPrefix, LogSuffix string
	parentHandler        func(map[string]interface{}) ParentLogHandler
}{{
	"log.", ".filter",
	func(keyMap map[string]interface{}) ParentLogHandler {
		return NewParentLogHandler(func(child LogHandler) LogHandler {
			return MatchMapHandler(keyMap, child)
		})
	},
}, {
	"log.", ".nfilter",
	func(keyMap map[string]interface{}) ParentLogHandler {
		return NewParentLogHandler(func(child LogHandler) LogHandler {
			return NotMatchMapHandler(keyMap, child)
		})
	},
}}
type loggerRewrite struct {
	Logger         MultiLogger
	Level          log15.Lvl
	hideDeprecated bool
}
var log_deprecated = []byte("* LOG DEPRECATED * ")
func (lr loggerRewrite) Write(p []byte) (n int, err error) {
	if !lr.hideDeprecated {
		p = append(log_deprecated, p...)
	}
	n = len(p)
	if len(p) > 0 && p[n-1] == '\n' {
		p = p[:n-1]
		n--
	}
	switch lr.Level {
	case log15.LvlInfo:
		lr.Logger.Info(string(p))
	case log15.LvlDebug:
		lr.Logger.Debug(string(p))
	case log15.LvlWarn:
		lr.Logger.Warn(string(p))
	case log15.LvlError:
		lr.Logger.Error(string(p))
	case log15.LvlCrit:
		lr.Logger.Crit(string(p))
	}
	return
}