Difference between revisions of "SetDebug.php"

From Bebot Wiki 2
Jump to navigationJump to search
Line 8: Line 8:
 
Verbose: Sets the debugger verbosity from 0 to 3
 
Verbose: Sets the debugger verbosity from 0 to 3
  
−
0 only ERROR level
+
0 minimal verbosity
  
−
1 also NOTICE & WARNING levels
+
1 adds START level
  
−
2 also DEBUG level
+
2 adds ERROR level
  
−
3 allows to log backtrace
+
3 adds WARNING level
 +
 
 +
4 adds NOTICE level
 +
 
 +
5 adds DEBUG level
 +
 
 +
6 more + log backtrace
  
 
===== Commands provided =====
 
===== Commands provided =====
Line 23: Line 29:
 
</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

Revision as of 12:58, 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 3

0 minimal verbosity

1 adds START level

2 adds ERROR level

3 adds WARNING level

4 adds NOTICE level

5 adds DEBUG level

6 more + log backtrace

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