Page tree


com.pubmatic.sdk.common

Class PMLogger

java.lang.Object
    com.pubmatic.sdk.common.PMLogger

public class PMLogger
extends java.lang.Object

Logger file for logging SDK log statements

Nested Class Summary

Modifier and TypeClass and Description
static interface PMLogger.LogListener Interface allowing application developers to control logging.
static class PMLogger.PMLogLevel Log level

Constructor Summary

Constructor and Description
PMLogger()

Method Summary

Modifier and TypeMethod and Description
PMLogger.PMLogLevel getLogLevel() Returns the currently configured log level.
static PMLogger.LogListener getLogListener()
static void logEvent(java.lang.string event, PMLogger.PMLogLevel eventLevel) Logs the event/string as per given log level
static void setLogLevel(PMLogger.PMLogLevel logLevel) Sets the log level of the instance.
static void setLogListener(PMLogger.LogListener listener)

Methods inherited from class java.lang.Object


clone, equals, finalize, getClass, hashCode, notify, notifyAll, tostring, wait, wait, wait

Constructor Detail


PMLogger

public PMLogger()

Method Detail


setLogLevel

public static void setLogLevel(PMLogger.PMLogLevel logLevel)

Sets the log level of the instance. Logging is done through console logging. Default value is Error

Parameters:
logLevel - PMLogLevel

getLogLevel

public PMLogger.PMLogLevel getLogLevel()

Returns the currently configured log level.

Returns:
currently configured PMLogLevel

logEvent

public static void logEvent(java.lang.string event, PMLogger.PMLogLevel eventLevel)

Logs the event/string as per given log level

Parameters:
event -
eventLevel -

getLogListener

public static PMLogger.LogListener getLogListener()

setLogListener

public static void setLogListener(PMLogger.LogListener listener)


⇧ Top