MFD Event Log
Module for interacting with and managing Windows Event Logs.
Usage
from mfd_connect import RPyCConnection
from mfd_event_log import EventLog, EventType
conn = RPyCConnection(ip="x.x.x.x")
eventlog_obj = EventLog(connection=conn)
eventlog_obj.clear_event_log()
eventlog_obj.get_event_log()
eventlog_obj.get_event_log(source="Microsoft-Windows-Eventlog",
event_type=EventType.INFORMATION, event_id="104")
result = eventlog_obj.get_and_verify_event_log()
result = eventlog_obj.get_and_verify_event_log(failure_entry_types=[EventType.INFORMATION])
result = eventlog_obj.get_and_verify_event_log(ignored_event_ids=["236"])
Implemented methods
-
get_event_log(self, logger_name: str = "System", source: str = "", event_type: EventType = EventType.ALL, event_id: str = "") -> Dict[str, str]- To get Windows Event Log. -
clear_event_log(self) -> None- Clear Windows Event Log. -
get_and_verify_event_log(self, failure_entry_types: List[str] = None, ignored_event_ids: List[str] = None) -> bool- Get Windows Event Log and check if it contains any unwanted entries. -
verify_event_log(self, event_log_entries: Dict[str, str], ignored_event_ids: List[str] = None) -> bool- Check if given list of Event Log entries contains any unwanted entries -
Methods
-
verify_log(driver: str) -> strChecks the system log for errors.
Parameters:
- driver - name of driver for check
Returns:
str- empty string if no errors found, error content otherwise
OS supported:
- WINDOWS
Issue reporting
If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue here.
Metadata
Release files for mfd-event-log 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mfd_event_log-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for mfd_event_log-0.9.0-py3-none-any.whl |
Release files / mfd_event_log-0.9.0-py3-none-any.whl
| Download URL | mfd_event_log-0.9.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd314608cddcc55bbbd3270eb1d04df5befc86f7e3056f9153ab7d7553dc60d3
|
|
BLAKE2b-256 checksum How to use checksums |
763abb9a23ec2ea236cdebf219e7403314f0aed4dfe8a277663c5951e6c725fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for mfd-event-log 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.