You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,12 @@ This project enhances Python’s built-ins with extra functionality, prioritizin
17
17
ibution.
18
18
19
19
## Compatibility Break Warnings
20
-
1.**1.3.2 (2025-08-02)**
20
+
21
+
1.**1.3.4 (2025-09-17)**
22
+
1. Refactor of `morebuiltins.cmd.log_server`
23
+
2.**1.3.2 (2025-08-02)**
21
24
1. move `async_logger`, `AsyncQueueListener`, `LogHelper`, `RotatingFileWriter`, and `SizedTimedRotatingFileHandler` from `morebuiltins.funcs` to `morebuiltins.logs`.
22
-
2.**1.3.0 (2025-03-08)**
25
+
3.**1.3.0 (2025-03-08)**
23
26
1. rename `morebuiltins.functools` to `morebuiltins.funcs` to avoid conflict with `functools` in python standard library.
24
27
25
28
## Install
@@ -221,7 +224,7 @@ print(morebuiltins.__file__)
221
224
222
225
## 9. morebuiltins.cmd.log_server
223
226
224
-
9.1 `LogServer` - Log Server for SocketHandler, create a socket server with asyncio.start_server. Update settings of rotation/formatter with extra: {"max_size": 1024**2, "formatter": logging.Formatter(fmt="%(asctime)s - %(filename)s - %(message)s")}
227
+
9.1 `LogServer` - Log server for SocketHandler, create a socket server with asyncio.start_server. Custom formatter or rotation strategy with extra in log record.
Copy file name to clipboardExpand all lines: doc.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2260,23 +2260,29 @@ Demo::
2260
2260
2261
2261
2262
2262
2263
-
9.1`LogServer`- Log Serverfor SocketHandler, create a socket server with asyncio.start_server. Update settings of rotation/formatter with extra: {"max_size": 1024**2, "formatter": logging.Formatter(fmt="%(asctime)s - %(filename)s - %(message)s")}
2263
+
9.1`LogServer`- Log serverfor SocketHandler, create a socket server with asyncio.start_server. Custom formatter or rotation strategy with extrain log record.
2264
2264
2265
2265
2266
2266
```python
2267
2267
2268
+
[WARNING]: Ensure your log msg is""if you only want to update settings, or the msg will be skipped.
Copy file name to clipboardExpand all lines: morebuiltins/cmd/log_server.py
+37-19Lines changed: 37 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -153,20 +153,26 @@ def __str__(self):
153
153
154
154
155
155
classLogServer(SocketServer):
156
-
"""Log Server for SocketHandler, create a socket server with asyncio.start_server. Update settings of rotation/formatter with extra: {"max_size": 1024**2, "formatter": logging.Formatter(fmt="%(asctime)s - %(filename)s - %(message)s")}
156
+
"""Log server for SocketHandler, create a socket server with asyncio.start_server. Custom formatter or rotation strategy with extra in log record.
157
+
158
+
[WARNING]: Ensure your log msg is "" if you only want to update settings, or the msg will be skipped.
0 commit comments