package com.rc.core.log

import java.util.logging.Level
import java.util.logging.Logger

/**
 * info
 *
 * @author ReiChin_
 */
object RcLog {

    private val logger = Logger.getLogger(RcLog::class.java.name)

    fun warn(message: String, throwable: Throwable? = null) {
        printLog(Level.WARNING, message, throwable)
    }

    fun info(message: String, throwable: Throwable? = null) {
        printLog(Level.INFO, message, throwable)
    }

    private fun printLog(level: Level, message: String, throwable: Throwable? = null) {
        logger.log(level, message, throwable)
    }

}