mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:00:54 +00:00
parent
68c3bdfdd4
commit
1636a7271c
@ -34,6 +34,7 @@ func testConsoleCalls(bl *BeeLogger) {
|
|||||||
// without a log level specification.
|
// without a log level specification.
|
||||||
func TestConsole(t *testing.T) {
|
func TestConsole(t *testing.T) {
|
||||||
log1 := NewLogger(10000)
|
log1 := NewLogger(10000)
|
||||||
|
log1.EnableFuncCallDepth(true)
|
||||||
log1.SetLogger("console", "")
|
log1.SetLogger("console", "")
|
||||||
testConsoleCalls(log1)
|
testConsoleCalls(log1)
|
||||||
|
|
||||||
@ -44,6 +45,7 @@ func TestConsole(t *testing.T) {
|
|||||||
|
|
||||||
func BenchmarkConsole(b *testing.B) {
|
func BenchmarkConsole(b *testing.B) {
|
||||||
log := NewLogger(10000)
|
log := NewLogger(10000)
|
||||||
|
log.EnableFuncCallDepth(true)
|
||||||
log.SetLogger("console", "")
|
log.SetLogger("console", "")
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
log.Debug("debug")
|
log.Debug("debug")
|
||||||
|
Loading…
Reference in New Issue
Block a user