PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
pocketmine\utils\MainLoggerThread Class Reference
+ Inheritance diagram for pocketmine\utils\MainLoggerThread:
+ Collaboration diagram for pocketmine\utils\MainLoggerThread:

Public Member Functions

 __construct (private string $logFile, private ?string $archiveDir, private readonly int $maxFileSize=32 *1024 *1024)
 
 run ()
 
 shutdown ()
 
 syncFlushBuffer ()
 
 write (string $line)
 

Detailed Description

Definition at line 46 of file MainLoggerThread.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\utils\MainLoggerThread::__construct ( private string  $logFile,
private ?string  $archiveDir,
private readonly int  $maxFileSize = 32 * 1024 * 1024 
)

Definition at line 53 of file MainLoggerThread.php.

Member Function Documentation

◆ run()

pocketmine\utils\MainLoggerThread::run ( )

Definition at line 161 of file MainLoggerThread.php.

◆ shutdown()

pocketmine\utils\MainLoggerThread::shutdown ( )

Definition at line 85 of file MainLoggerThread.php.

◆ syncFlushBuffer()

pocketmine\utils\MainLoggerThread::syncFlushBuffer ( )

Definition at line 73 of file MainLoggerThread.php.

◆ write()

pocketmine\utils\MainLoggerThread::write ( string  $line)

Definition at line 66 of file MainLoggerThread.php.


The documentation for this class was generated from the following file: