Skip to content

Commit e12d131

Browse files
Merge pull request #55 from Preston-Landers/timed_rotating_v2
Timed rotation support 😁
2 parents f30671b + 5128ca6 commit e12d131

16 files changed

+922
-284
lines changed

.github/workflows/clh_tests.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
# Note that the new tests don't work on Python 2.7
1716
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1817

1918

@@ -48,7 +47,7 @@ jobs:
4847
# stop the build if there are Python syntax errors or undefined names
4948
ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 .
5049
# default set of ruff rules with GitHub Annotations
51-
ruff --format=github --target-version=py37 .
50+
ruff --format=github --config ruff.toml --target-version=py37 .
5251
- name: Test with pytest
5352
run: |
5453
pytest

.markdownlint.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"MD013": false,
3+
"MD046": false
4+
}

.vscode/extensions.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"recommendations": [
3+
"charliermarsh.ruff",
4+
"ms-python.black-formatter",
5+
"streetsidesoftware.code-spell-checker",
6+
"editorconfig.editorconfig",
7+
"usernamehw.errorlens",
8+
"mhutchie.git-graph",
9+
"ms-python.python",
10+
"ms-python.vscode-pylance",
11+
"stkb.rewrap",
12+
"tamasfe.even-better-toml"
13+
]
14+
}

.vscode/settings.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"files.exclude": {
3+
".idea": true,
4+
".ruff_cache": true,
5+
".run": true,
6+
"**/.pytest_cache": true,
7+
"**/*.egg-info": true,
8+
"**/*.pyc": true,
9+
"build": true,
10+
"dist": true,
11+
"env": true,
12+
"output_tests": true,
13+
"venv": true
14+
},
15+
"cSpell.words": [
16+
"Alleman",
17+
"builtins",
18+
"Cabe",
19+
"concat",
20+
"CREAT",
21+
"datetime",
22+
"gunicorn",
23+
"gzipped",
24+
"Journyx",
25+
"kwarg",
26+
"kwargs",
27+
"levelname",
28+
"logfile",
29+
"logfile's",
30+
"logfiles",
31+
"maxsplit",
32+
"multiprocess",
33+
"portalocker",
34+
"POSIX",
35+
"pychecker",
36+
"pycodestyle",
37+
"pydoc",
38+
"Pyflakes",
39+
"Pylint",
40+
"pypi",
41+
"pytest",
42+
"pywin",
43+
"queuify",
44+
"stresstest",
45+
"tempname",
46+
"timeframe",
47+
"tmpname",
48+
"trfh"
49+
],
50+
"cSpell.ignoreRegExpList": [
51+
"/\\s(os|errno|time|pwd|grp)[.].+?\\s/gi",
52+
],
53+
"python.testing.unittestEnabled": false,
54+
"python.testing.pytestEnabled": true
55+
}

CHANGELOG.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
- 0.9.23:
44
- Begin requiring Python 3.6 or higher.
5+
- Implements a `ConcurrentTimedRotatingFileHandler` class which provides both time and/or size
6+
based rotation. See the [README.md](./README.md#time-based-rotation-settings) for details.
7+
- Fix #56 - don't fail when setting `owner` on Windows, though it will have no effect.
58

69
- 0.9.22:
710
- Fix Python 2.7 compatibility (yet again)
8-
- Important note: this is the FINAL release which will support Python 2.7.
9-
Future versions will support Python 3.6+ only.
11+
- Important note: this is the FINAL release which will support Python 2.7.
12+
Future versions will support Python 3.6+ only.
1013

1114
- 0.9.21:
1215
- Added new optional parameter "lock_file_directory"
@@ -15,7 +18,7 @@
1518
- Useful when the log files reside in a cloud synced folder like Dropbox, Google Drive,
1619
OneDrive, etc. Sometimes these do not work correctly with the lock files.
1720
- Fix not replacing the last file (greatest backup number) when rotating. Thanks tzongw.
18-
- <https://github.com/Preston-Landers/concurrent-log-handler/pull/52>
21+
- <https://github.com/Preston-Landers/concurrent-log-handler/pull/52>
1922
- Add support for "namer" function to customize the naming of rotated files. Thanks @dashedman.
2023
- Enhanced test suite using tox and pytest.
2124

0 commit comments

Comments
 (0)