<?php


namespace Library;

use SeasLog;

class SLog
{
    public static function setLogPath($logPath): bool
    {
        return SeasLog::setLogger($logPath);
    }

    public static function getBasePath(): string
    {
        return SeasLog::getBasePath();
    }

    static public function debug($message, array $context = array(), $logPath = '')
    {
        SeasLog::debug($message, $context, $logPath);
    }

    static public function info($message, array $context = array(), $logPath = '')
    {
        SeasLog::info($message, $context, $logPath);
    }

    static public function notice($message, array $context = array(), $logPath = '')
    {
        SeasLog::notice($message, $context, $logPath);
    }

    static public function warning($message, array $context = array(), $logPath = '')
    {
        SeasLog::warning($message, $context, $logPath);
    }

    static public function error($message, array $context = array(), $logPath = '')
    {
        SeasLog::error($message, $context, $logPath);
    }

    static public function critical($message, array $context = array(), $logPath = '')
    {
        SeasLog::critical($message, $context, $logPath);
    }
}