Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:config:toggle-debug-logging [2015/07/30 19:01]
Michael Alegre created
litespeed_wiki:config:toggle-debug-logging [2019/12/22 17:40] (current)
George Wang [Send Signal SIGUSR2 to Toggle Debug Logging From command line]
Line 7: Line 7:
 Toggle Debug Logging switches your Debug Level setting from ''​NONE''​ to ''​HIGH''​. Thus, in order to use Toggle Debug Logging, your Log Level must be set to ''​DEBUG''​ and your Debug Level set to ''​NONE'',​ as shown below. (These settings are in the WebAdmin console > Configuration > Server > Log.) Toggle Debug Logging switches your Debug Level setting from ''​NONE''​ to ''​HIGH''​. Thus, in order to use Toggle Debug Logging, your Log Level must be set to ''​DEBUG''​ and your Debug Level set to ''​NONE'',​ as shown below. (These settings are in the WebAdmin console > Configuration > Server > Log.)
  
-{{toggle_debug_base_settings.png?​700}}+{{ :​litespeed_wiki:​toggle_debug_base_settings.png?​direct700px |}}
  
-===== Use Toggle Debug Logging =====+===== Send Signal SIGUSR2 to Toggle Debug Logging From Command Line===== 
 + 
 +Back up or delete old ''​error_log'':​ 
 +  mv error_log error_log.old 
 + 
 +Toggle LiteSpeed server debug log (run once to turn on, run again to turn off): 
 +  killall -USR2 litespeed 
 + 
 +Reproduce the issue in your browser. 
 + 
 +Toggle the debug log off: 
 +  killall -USR2 litespeed 
 + 
 +Move the debug log to ''​error_log.debug'':​ 
 +  mv error_log error_log.debug 
 +   
 +The ''​error_log.debug''​ file could be very big if it is a busy production server, please make sure to turn it off after getting necessary debug log.  
 + 
 +If need to forward it to our support department, please gzip it first.  
 + 
 +===== Use Toggle Debug Logging ​From WebAdmin Console=====
  
 With the base settings ready, Toggle Debug Logging is really easy to use. (That is the point, after all.) Just go to the Actions menu and select Toggle Debug Logging. With the base settings ready, Toggle Debug Logging is really easy to use. (That is the point, after all.) Just go to the Actions menu and select Toggle Debug Logging.
  
-{{activate_toggle_debug.png?​700}}+{{ :​litespeed_wiki:​activate_toggle_debug.png?​direct,​700px |}}
  
 You will get a confirmation message making sure you want to toggle debug logging. Select ''​OK''​. You will get a confirmation message making sure you want to toggle debug logging. Select ''​OK''​.
  
-{{toggle_debug_confirm.png?​700}}+{{ :​litespeed_wiki:​toggle_debug_confirm.png?​direct,​700px |}}
  
 When you go look at your log now, make sure you have Display Level set to ''​DEBUG''​. When you go look at your log now, make sure you have Display Level set to ''​DEBUG''​.
  
-{{toggle_debug_display_level.png?​700}}+{{ :​litespeed_wiki:​toggle_debug_display_level.png?​direct,​700px |}}
  
 You should be getting all sorts of new, dark blue debug information. You should be getting all sorts of new, dark blue debug information.
  
-{{sample_debug_data.png?​700}}+{{ :​litespeed_wiki:​sample_debug_data.png?​direct,​700px |}}
  
 To toggle debug logging off again, just go back to the Actions menu and select Toggle Debug Logging again. To toggle debug logging off again, just go back to the Actions menu and select Toggle Debug Logging again.
  
-{{toggle_debug_off.png?​700}}+{{ :​litespeed_wiki:​toggle_debug_off.png?​direct,​700px |}}
  • Admin
  • Last modified: 2015/07/30 19:01
  • by Michael Alegre