AlexStocks / getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
883 stars 184 forks source link

Imp: check log level before log #37

Closed AlexStocks closed 4 years ago

AlexStocks commented 4 years ago

What would you like to be added:

improve the log in this way:

if  logLevel >= log.INFO  { 
    log.Info(...) 
}

Why is this needed:

Improve the performance.