github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/plugin/rpcplugin/sandbox/main_test.go (about) 1 package sandbox 2 3 import ( 4 "testing" 5 6 "github.com/mattermost/mattermost-server/mlog" 7 ) 8 9 func TestMain(t *testing.T) { 10 // Setup a global logger to catch tests logging outside of app context 11 // The global logger will be stomped by apps initalizing but that's fine for testing. Ideally this won't happen. 12 mlog.InitGlobalLogger(mlog.NewLogger(&mlog.LoggerConfiguration{ 13 EnableConsole: true, 14 ConsoleJson: true, 15 ConsoleLevel: "error", 16 EnableFile: false, 17 })) 18 }