Skip to content
徐昊 edited this page Nov 15, 2018 · 5 revisions

During the development of the program, it is often encountered that no message is received, or a message is sent, but the server does not receive it. At this time, our usual practice is to output logs to check our program logic. For the convenience of developer development, we provide send logs, receive logs and some logs and some exceptions information when establishing connections.

  • IOLog
   SLog.setIsDebug(true);
  • Client
   //you can put this code as following anywhere you want.
   OkSocketOptions.setIsDebug(true);
   //When you add this code, you will see the log for client.
  • Server
   //if you add the server dependencies and you also want to see the log
   //you can put this code as following anywhere you want.
   OkServerOptions.setIsDebug(true);