Package com.naver.ads

Class NasLogger

  • All Implemented Interfaces:

    
    public final class NasLogger
    
                        

    The logger that can output message with a tag.

    • Constructor Detail

      • NasLogger

        NasLogger(String tag)
        Constructs a new NasLogger instance
        Parameters:
        tag - the tag used for logging.
    • Method Detail

      • log

         final Unit log()

        Writes the accumulated messages, then clears messages to start again.

      • printLog

         final Unit printLog(String message)

        Immediately logs a string, ignoring any accumulated contents, which are left unchanged.

      • append

         final Unit append(String format, Object args)

        Appends the given format string and arguments to an accumulatedMessage

      • setLogLevel

         final static Unit setLogLevel(NasLogger.LogLevel logLevel)

        Sets the logging level for this logger.

        If you'd prefer to lower or higher the verbosity of the NAS SDK diagnostics logs, set the appropriate level.

        Note: The default value used when unset is to use LogLevel.DEBUG when BuildConfig.DEBUG is true, otherwise LogLevel.NONE.

        Parameters:
        logLevel - the log level.
      • v

         final static Unit v(String tag, String messageOrTemplates, Object args)

        Logs a verbose-level message

        Parameters:
        tag - the tag of the message.
        messageOrTemplates - the message or template string.
        args - the arguments referenced by the format specifiers in the template string.
      • d

         final static Unit d(String tag, String messageOrTemplates, Object args)

        Logs a debug-level message

        Parameters:
        tag - the tag of the message.
        messageOrTemplates - the message or template string.
        args - the arguments referenced by the format specifiers in the template string.
      • i

         final static Unit i(String tag, String messageOrTemplates, Object args)

        Logs a information-level message

        Parameters:
        tag - the tag of the message.
        messageOrTemplates - the message or template string.
        args - the arguments referenced by the format specifiers in the template string.
      • w

         final static Unit w(String tag, String messageOrTemplates, Object args)

        Logs a warning-level message

        Parameters:
        tag - the tag of the message.
        messageOrTemplates - the message or template string.
        args - the arguments referenced by the format specifiers in the template string.
      • e

         final static Unit e(String tag, String messageOrTemplates, Object args)

        Logs a error-level message

        Parameters:
        tag - the tag of the message.
        messageOrTemplates - the message or template string.
        args - the arguments referenced by the format specifiers in the template string.