Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AbrahamArmasCordero opened this issue Jul 9, 2024 · 0 comments · Fixed by #1026
Assignees

Comments

@AbrahamArmasCordero
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants