mirror of
				https://github.com/InsanusMokrassar/KSLog.git
				synced 2025-11-04 05:20:38 +00:00 
			
		
		
		
	KSLog(SimpleKSLogCallback)
This commit is contained in:
		@@ -4,6 +4,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
* Add `setDefaultKSLog`
 | 
					* Add `setDefaultKSLog`
 | 
				
			||||||
* Add `plus` operation for two `KSLog` instances to call them both on each log performing
 | 
					* Add `plus` operation for two `KSLog` instances to call them both on each log performing
 | 
				
			||||||
 | 
					* Add `KSLog` factory for simple creation of `CallbackKSLog`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## 0.4.1
 | 
					## 0.4.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,3 +7,7 @@ class CallbackKSLog(
 | 
				
			|||||||
) : KSLog {
 | 
					) : KSLog {
 | 
				
			||||||
    override fun performLog(level: LogLevel, tag: String?, message: Any, throwable: Throwable?) = performLogCallback(level, tag, message, throwable)
 | 
					    override fun performLog(level: LogLevel, tag: String?, message: Any, throwable: Throwable?) = performLogCallback(level, tag, message, throwable)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					fun KSLog(
 | 
				
			||||||
 | 
					    performLogCallback: SimpleKSLogCallback
 | 
				
			||||||
 | 
					) = CallbackKSLog(performLogCallback)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user