Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/aws/aws-crt-php/src/AWS/CRT/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/aws/aws-crt-php/src/AWS/CRT/Log.php
<?php
/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */
namespace AWS\CRT;
use AWS\CRT\CRT;

final class Log {
    const NONE = 0;
    const FATAL = 1;
    const ERROR = 2;
    const WARN = 3;
    const INFO = 4;
    const DEBUG = 5;
    const TRACE = 6;

    public static function toStdout() {
        CRT::log_to_stdout();
    }

    public static function toStderr() {
        CRT::log_to_stderr();
    }

    public static function toFile($filename) {
        CRT::log_to_file($filename);
    }

    public static function toStream($stream) {
        assert(get_resource_type($stream) == "stream");
        CRT::log_to_stream($stream);
    }

    public static function stop() {
        CRT::log_stop();
    }

    public static function setLogLevel($level) {
        assert($level >= self::NONE && $level <= self::TRACE);
        CRT::log_set_level($level);
    }

    public static function log($level, $message) {
        CRT::log_message($level, $message);
    }
}

Spamworldpro Mini