C:\xampp\htdocs\landing\wp-content\plugins\wp-optimize\includes\class-updraft-log-levels.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php

if (!defined('ABSPATH')) die('No direct access allowed');

if (
class_exists('Updraft_Log_Levels')) return;

/**
 * Class Updraft_Log_Levels
 */
class Updraft_Log_Levels {

    const 
EMERGENCY 'emergency';
    const 
ALERT 'alert';
    const 
CRITICAL 'critical';
    const 
ERROR 'error';
    const 
WARNING 'warning';
    const 
NOTICE 'notice';
    const 
INFO 'info';
    const 
DEBUG 'debug';

    
/**
     * Return level text catption
     *
     * @param  string $level Text of level Type.
     * @return string        Returns the Level type.
     */
    
static public function to_text($level) {

        
$text = array(
            
self::EMERGENCY => 'EMERGENCY',
            
self::ALERT => 'ALERT',
            
self::CRITICAL => 'CRITICAL',
            
self::ERROR => 'ERROR',
            
self::WARNING => 'WARNING',
            
self::NOTICE => 'NOTICE',
            
self::INFO => 'INFO',
            
self::DEBUG => 'DEBUG',
        );

        if (
array_key_exists($level$text)) return $text[$level];

        return 
'';
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586