403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/google-cloud-sdk/lib/surface/logging/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/google-cloud-sdk/lib/surface/logging/__pycache__/write.cpython-311.pyc
�

������dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ejGd�d	ej����Z
d
dd�e
_d
S)z'logging write' command.�)�absolute_import)�division)�unicode_literals)�util)�base)�logc�6�eZdZdZdZdZed���Zd�ZdS)�WritezWrite a log entry.)	�DEFAULT�DEBUG�INFO�NOTICE�WARNING�ERROR�CRITICAL�ALERT�	EMERGENCY)�text�jsonc��|�dd���|�dd���|�dtjdd�	��|�d
dtjdd
���t	j|d��dS)z Register flags for this command.�log_namez4Name of the log where the log entry will be written.)�help�messagezUMessage to put in the log entry. It can be JSON if you include `--payload-type=json`.z--payload-typerzType of the log entry payload.)�choices�defaultrz
--severityFrz Severity level of the log entry.)�requiredrrrzlog entries to writeN)�add_argumentr
�PAYLOAD_TYPE�
SEVERITY_ENUMr�
AddParentArgs)�parsers �lib/surface/logging/write.py�Argsz
Write.Args$s�������(��*�*�*�����F��H�H�H������"�F�.��1�1�1�����u��#�Y�
/��1�1�1�
	��v�5�6�6�6�6�6�c����tj���t�jj|j�����}��tjtj|��|j	����
d���|���}|jdkrRtj|j
��}�j���}�fd�|jD��|_||_n|j
|_tj��j���|g�����t.j�d��dS)	z�This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.
    �global)�type)�logName�resource�severityrc�f��g|]-}�jj�|j|j�����.S))�key�value)�LogEntry�JsonPayloadValue�AdditionalPropertyr,r-)�.0�
json_property�messagess  �r"�
<listcomp>zWrite.Run.<locals>.<listcomp>PsS���%�%�%���
�
,�
?�
?��#�!�'�@�)�)�%�%�%r$)�entrieszCreated log entry.
N)r�GetMessages�getattrr.�SeverityValueValuesEnumr*�upper�CreateLogResourceName�GetParentFromArgsr�MonitoredResource�payload_type�ConvertToJsonObjectrr/�
properties�additionalProperties�jsonPayload�textPayload�	GetClientr5r
�WriteLogEntriesRequestr�status�write)�self�args�severity_value�entry�json_object�structr3s      @r"�Runz	Write.Run8sc�����!�!�H��X�.�F�!�]�0�0�2�2�4�4�N�
����*��"�4�(�(�$�-�9�9��+�+��+�:�:��	
�
!�
!�E���F�"�"��,�T�\�:�:�k�� �1�1�3�3�f�%�%�%�%� +�5�	%�%�%�f�!�!�e����,�e���N����"�"��'�'���'�8�8�:�:�:��J���+�,�,�,�,�,r$N)	�__name__�
__module__�__qualname__�__doc__rr�staticmethodr#rM�r$r"r
r
sP��������>�-�"�,��7�7��<�7�&$-�$-�$-�$-�$-r$r
a        {index}
        If the destination log does not exist, it will be created.
        All log entries written with this command are considered to be from
        the "custom.googleapis.com" v1 service or the "global" v2 resource type.
        The log entries will be listed in the Logs Explorer under that service
        or resource type.

        {command} should be used for simple testing purposes.
        Check Cloud Logging agent for a proper way to send log entries:
        [](https://cloud.google.com/logging/docs/agent/)
    aN        To create a log entry in a given log, run:

          $ {command} LOG_NAME "A simple entry"

        To create a high severity log entry, run:

          $ {command} LOG_NAME "Urgent message" --severity=ALERT

        To create a structured log, run:

          $ {command} LOG_NAME '{"key": "value"}' --payload-type=json
    )�DESCRIPTION�EXAMPLESN)rQ�
__future__rrr�googlecloudsdk.api_lib.loggingr�googlecloudsdk.callioper�googlecloudsdk.corer�UniverseCompatible�
SilentCommandr
�
detailed_helprSr$r"�<module>r]s��� ��&�&�&�&�&�&�������'�'�'�'�'�'�/�/�/�/�/�/�(�(�(�(�(�(�#�#�#�#�#�#���@-�@-�@-�@-�@-�D��@-�@-���@-�F�������r$

Youez - 2016 - github.com/yon3zu
LinuXploit