Difference between revisions of "SetDebug.php"

From Bebot Wiki 2
Jump to navigationJump to search
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
===== Settings =====
 
===== Settings =====
  
−
Verbose: Sets the debugger verbosity from 0 to 3
+
Verbose: Sets the debugger verbosity from 0 to 6
 +
<pre>
 +
0 minimal verbosity LOG/LOGIN/FATAL/SECURITY/STATUS
 +
 
 +
1 adds START/UPDATE/LOAD levels
 +
 
 +
2 adds ERROR level
  
−
0: no verbosity
+
3 adds WARNING/OUTGOING/INCOMING/RELAY level
  
−
1: shows cron duration
+
4 adds NOTICE/INFO level (default)
  
−
2: shows cron jobs
+
5 adds DEBUG level
  
−
3: more details & log packets
+
6 log backtrace & maximal verbosity
 +
</pre>
  
 
===== Commands provided =====
 
===== Commands provided =====
Line 23: Line 30:
 
</pre>
 
</pre>
  
−
NB : if Verbosity is 3, as soon debug is set on, the bot will spam more details in window & log binary packets into its log folder as aoc-debug-Y-m-d-His.bin
+
NB : if Verbosity is 6, as soon debug is set on, the bot will spam more details in window & log binary packets into its log folder as aoc-debug-Y-m-d-His.bin

Latest revision as of 14:41, 9 October 2026

SetDebug.php

Description

Allows Owner to set/get the bot's global debug setting in /tell

Settings

Verbose: Sets the debugger verbosity from 0 to 6

	0 minimal verbosity LOG/LOGIN/FATAL/SECURITY/STATUS 

	1 adds START/UPDATE/LOAD levels

	2 adds ERROR level

	3 adds WARNING/OUTGOING/INCOMING/RELAY level

	4 adds NOTICE/INFO level (default)

	5 adds DEBUG level

	6 log backtrace & maximal verbosity
Commands provided
^Command  ^Keyword  ^Argument(s)   ^Description                           ^Tell      ^Guild     ^Priv      
|!setdebug     |          |     |Switches current value (on->off,off->on)|Owner     |          |         |
|!getdebug     |          |     |Shows debug current value (on or off)   |Owner     |          |         |

NB : if Verbosity is 6, as soon debug is set on, the bot will spam more details in window & log binary packets into its log folder as aoc-debug-Y-m-d-His.bin