prebid / prebid-mobile-ios

Prebid Mobile SDK for iOS applications
Apache License 2.0
47 stars 87 forks source link

setCustomLogger implementation from Android Library is not present in iOS library #1023

Open AbrahamArmasCordero opened 1 month ago

AbrahamArmasCordero commented 1 month ago

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