Post log messages to Matrix #6

Merged
eric merged 4 commits from matrix_logging into main 2025-02-09 15:48:04 +00:00
Owner

Initial attempt to add matrix-nio to a logging module

Initial attempt to add matrix-nio to a logging module
eric added this to the (deleted) milestone 2025-01-28 03:10:36 +00:00
eric self-assigned this 2025-01-28 03:10:36 +00:00
eric added 1 commit 2025-01-28 03:10:37 +00:00
eric added this to the Algorithmic Cryptocurrency Daytrading project 2025-01-28 03:10:37 +00:00
eric removed this from the Algorithmic Cryptocurrency Daytrading project 2025-01-28 03:13:46 +00:00
eric started working 2025-01-28 03:14:10 +00:00
eric reviewed 2025-01-28 03:16:04 +00:00
@@ -0,0 +6,4 @@
class MatrixHandler(logging.Handler):
def __init__(self, url, user_id, user_password, room_id):
super().__init__()
self.client = AsyncClient(url, user_id)
Author
Owner

AsyncClient will need to be executed like so:

if __name__ == "__main__":
    try:
        asyncio.run(main())
    except KeyboardInterrupt:
        pass

As such, it will need to be instantiated and started elsewhere with the necessary values passed in via parameters.

`AsyncClient` will need to be executed like so: ``` if __name__ == "__main__": try: asyncio.run(main()) except KeyboardInterrupt: pass ``` As such, it will need to be instantiated and started elsewhere with the necessary values passed in via parameters.
Author
Owner

The HttpClient was used instead. Fortunately, the interface was compatible.

The `HttpClient` was used instead. Fortunately, the interface was compatible.
Author
Owner

This is still an issue. The Matrix logger likely needs to be redesigned.

This is still an issue. The Matrix logger likely needs to be redesigned.
eric marked this conversation as resolved
eric worked for 14 minutes 27 seconds 2025-01-28 03:28:37 +00:00
eric added this to the Algorithmic Cryptocurrency Daytrading project 2025-01-28 03:29:20 +00:00
eric changed title from Post log messages to Matrix to WIP: Post log messages to Matrix 2025-01-28 13:25:29 +00:00
eric started working 2025-02-05 02:55:27 +00:00
eric added 1 commit 2025-02-05 04:02:00 +00:00
Author
Owner

Preliminary design has been finalized, testing is needed.

Preliminary design has been finalized, testing is needed.
eric worked for 1 hour 7 minutes 2025-02-05 04:02:44 +00:00
eric added 1 commit 2025-02-08 16:28:31 +00:00
eric added 1 commit 2025-02-09 15:43:56 +00:00
eric changed title from WIP: Post log messages to Matrix to Post log messages to Matrix 2025-02-09 15:44:26 +00:00
eric added spent time 1 hour 2025-02-09 15:46:28 +00:00
eric merged commit e2034cfa65 into main 2025-02-09 15:48:04 +00:00
eric deleted branch matrix_logging 2025-02-09 15:48:05 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Total Time Spent: 2 hours 21 minutes
eric
2 hours 21 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Finance/kraken-bot#6