prebid-mobile-ios icon indicating copy to clipboard operation
prebid-mobile-ios copied to clipboard

setCustomLogger implementation from Android Library is not present in iOS library

Open AbrahamArmasCordero opened this issue 7 months ago • 0 comments

Is your feature request related to a problem? Please describe. Android has this method in the global Parameters section of the documentation -> image

that can be used as so (it's an example) ->

PrebidMobile.setCustomLogger(object : LogUtil.PrebidLogger
{
	override fun println(messagePriority: Int, tag: String, message: String)
	{
		when (messagePriority)
		{
			org.prebid.mobile.LogUtil.NONE    -> CustomLoggerExample.none(tag, message)
			org.prebid.mobile.LogUtil.VERBOSE -> CustomLoggerExample.v(tag, message)
			org.prebid.mobile.LogUtil.DEBUG   -> CustomLoggerExample.d(tag, message)
			org.prebid.mobile.LogUtil.INFO    -> CustomLoggerExample.i(tag, message)
			org.prebid.mobile.LogUtil.WARN    -> CustomLoggerExample.w(tag, message)
			org.prebid.mobile.LogUtil.ERROR   -> CustomLoggerExample.e(tag, message)
			org.prebid.mobile.LogUtil.ASSERT  -> CustomLoggerExample.e(tag, message)
			else            -> CustomLoggerExample.unkown(tag, message)
		}
	}
	
	override fun e(tag: String, message: String, throwable: Throwable)
	{
		CustomLoggerExample.e(tag, throwable)
	}
})

Describe the solution you'd like Have the same method with same capabilities

AbrahamArmasCordero avatar Jul 09 '24 10:07 AbrahamArmasCordero