tropo / PhonoSDK

Phono.com - The jQuery Phone API
http://phono.com
Other
131 stars 61 forks source link

Disable logging? #35

Open yocontra opened 11 years ago

yocontra commented 11 years ago

How do I disable this insane amount of logging? I have application logs I'm trying to read and this make it really difficult

haisum commented 11 years ago

I have same problem. Is there any way to disable logging??

nkcmr commented 11 years ago

They just merged my pull request that sets the default log level to WARN. You can adjust the log level like so:

var phone = $.phono({
    apiKey:'abcd'
});

phone.setLogLevel("< ALL | TRACE | DEBUG | INFO | WARN | ERROR | FATAL | OFF >");
phone.getLogLevel(); // -> "WARN" (The default level)

Obviously, to completely disabled logging, set it to OFF