| 
									
										
										
										
											2025-04-25 06:52:48 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace App\Core; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * NullLogger is a fallback for disabling logging when there is no logging plugin enabled. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | class NullLogger | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * No-op insertLog. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @param mixed $userId | 
					
						
							|  |  |  |      * @param string $message | 
					
						
							|  |  |  |      * @param string|null $type | 
					
						
							|  |  |  |      * @return void | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public function insertLog($userId, string $message, ?string $type = null): void {} | 
					
						
							| 
									
										
										
										
											2025-04-27 12:43:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * PSR-3 log stub. | 
					
						
							|  |  |  |      * @param string $level | 
					
						
							|  |  |  |      * @param string $message | 
					
						
							|  |  |  |      * @param array $context | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public function log(string $level, string $message, array $context = []): void {} | 
					
						
							| 
									
										
										
										
											2025-04-25 06:52:48 +00:00
										 |  |  | } |