MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/nxlog/modules/extension/python/nxlog/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyo
�
�R9dc@s�ddlZddd��YZdefd��YZdefd��YZdefd	��YZd
dd��YZd�Zd
�Zd�Zd�Z	dS(i����NtModulecBs2eZdZd�Zd�Zd�Zd�ZRS(s�Wrapper class for NXLog internal module.

    This object is initialized with xm_, im_, or om_python and remains
    until NXLog is exits.
    cCs||_i|_dS(sConstructor called by NXLogN(tc_modulet_data(tselfR((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyt__init__
s	cCs|j|S(N(R(Rtkey((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyt__getitem__scCs||j|<dS(N(R(RRtvalue((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyt__setitem__scCs
||jkS(N(R(RR((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyt__contains__s(t__name__t
__module__t__doc__RRRR	(((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyRs
			tInputModulecBs)eZdZd�Zd�Zd�ZRS(s�Wrapper class for NXLog internal module.

    This object is initialized with xm_, im_, or om_python and remains
    until NXLog is exits.
    cCstj||�dS(N(RR(RR((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR"scCstj|j|�dS(srTrigger a read after specified delay (im_python only).

        delay -- time in seconds before next read
        N(t
libpynxlogtset_read_timerR(Rtdelay((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR%scCst|tj��S(sReturn a new LogData object.(tLogDataRtlogdata_new(R((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR,s(R
RRRRR(((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR
s		tOutputModulecBseZd�ZRS(cCstj||�dS(N(RR(RR((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR2s(R
RR(((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR1stExtensionModulecBseZd�ZRS(cCstj||�dS(N(RR(RR((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR7s(R
RR(((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR6sRcBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(s=Class implementing an event record and corresponding methods.cCs||_||_dS(sCalled by the Module classN(tmodulet	c_logdata(RRR((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR=s	cCstj|jj|j|�S(sReturn the value of a field.(Rtget_logdata_fieldRRR(Rtname((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyt	get_fieldBscCstj|jj|j||�S(s�Set a field to the specified value.

        name -- the name of the field to set
        value -- the value to set for the field
        (Rtset_logdata_fieldRRR(RRR((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyt	set_fieldGscCsdS(Ns
LogData...((R((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyt__str__RscCstj|jj|j|�S(s%Delete a field from the event record.(Rtdelete_logdata_fieldRRR(RR((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pytdelete_fieldUscCs<t|jt�r.tj|jj|j�n
td�dS(s7Post the LogData event to NXLog for further processing.s,Trying to post logdata from non-input moduleN(t
isinstanceRR
Rtpost_logdataRRt	log_error(R((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pytpostZscCstj|jj|j�S(s)Return a list containing all field names.(Rtget_logdata_field_namesRRR(R((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pytfield_namesas(
R
RRRRRRRR"R$(((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR:s						cCstj|�dS(s5Send a message to the internal logger at DEBUG level.N(Rt	log_debug(tmsg((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR%gscCstj|�dS(s4Send a message to the internal logger at INFO level.N(Rtlog_info(R&((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR'lscCstj|�dS(s7Send a message to the internal logger at WARNING level.N(Rtlog_warning(R&((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR(qscCstj|�dS(s5Send a message to the internal logger at ERROR level.N(RR!(R&((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyR!vs(((
RRR
RRRR%R'R(R!(((s9/usr/lib/nxlog/modules/extension/python/nxlog/__init__.pyt<module>s-			

MMCT - 2023