Skip to content

Commit b6859e5

Browse files
committed
Update CHANGELOG and rev to 2.0.0
1 parent 835f754 commit b6859e5

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.0.1
3+
rev: v4.2.0
44
hooks:
55
- id: check-case-conflict
66
- id: check-executables-have-shebangs
@@ -12,12 +12,12 @@ repos:
1212
- id: check-jenkins-pipelines
1313
- id: check-jjbb
1414
- repo: https://github.com/pre-commit/mirrors-mypy
15-
rev: v0.910
15+
rev: v0.950
1616
hooks:
1717
- id: mypy
1818
args: [--strict, --show-error-codes, --no-warn-unused-ignores, --implicit-reexport]
1919
- repo: https://github.com/ambv/black
20-
rev: 21.6b0
20+
rev: 22.3.0
2121
hooks:
2222
- id: black
2323
language_version: python3

CHANGELOG.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,42 @@
11
# Changelog
22

3+
## 2.0.0 (2022-05-18)
4+
5+
- Remove python 2 support ([#78](https://github.com/elastic/ecs-logging-python/pull/78))
6+
- Add global `extra` context fields to `StdLibFormatter` ([#65](https://github.com/elastic/ecs-logging-python/pull/65))
7+
38
## 1.1.0 (2021-10-18)
49

5-
* Remove python 3.5 support ([#69](https://github.com/elastic/ecs-logging-python/pull/69))
6-
* Fix an issue where APM fields would override user-provided fields even when
10+
- Remove python 3.5 support ([#69](https://github.com/elastic/ecs-logging-python/pull/69))
11+
- Fix an issue where APM fields would override user-provided fields even when
712
APM wasn't installed ([#67](https://github.com/elastic/ecs-logging-python/pull/67))
8-
* Removed `event.dataset` field handling to match
13+
- Removed `event.dataset` field handling to match
914
[`elastic-apm` v6.6.0](https://github.com/elastic/apm-agent-python/releases/tag/v6.6.0)
1015
([#69](https://github.com/elastic/ecs-logging-python/pull/69))
1116

1217
## 1.0.2 (2021-09-22)
1318

14-
* Fix an signature mismatch between `StdLibFormatter` and `logging.Formatter`,
19+
- Fix an signature mismatch between `StdLibFormatter` and `logging.Formatter`,
1520
which could cause issues in Django and Gunicorn
1621
([#54](https://github.com/elastic/ecs-logging-python/pull/54))
1722

1823
## 1.0.1 (2021-07-06)
1924

20-
* Fixed an issue in `StructlogFormatter` caused by a conflict with `event`
25+
- Fixed an issue in `StructlogFormatter` caused by a conflict with `event`
2126
(used for the log `message`) and `event.dataset` (a field provided by the
2227
`elasticapm` integration) ([#46](https://github.com/elastic/ecs-logging-python/pull/46))
23-
* Add default/fallback handling for json.dumps ([#47](https://github.com/elastic/ecs-logging-python/pull/47))
24-
* Fixed an issue in `StdLibFormatter` when `exc_info=False` ([#42](https://github.com/elastic/ecs-logging-python/pull/42))
28+
- Add default/fallback handling for json.dumps ([#47](https://github.com/elastic/ecs-logging-python/pull/47))
29+
- Fixed an issue in `StdLibFormatter` when `exc_info=False` ([#42](https://github.com/elastic/ecs-logging-python/pull/42))
2530

2631
## 1.0.0 (2021-02-08)
2732

28-
* Remove "beta" designation
33+
- Remove "beta" designation
2934

3035
## 0.6.0 (2021-01-21)
3136

32-
* Add validation against the ecs-logging [spec](https://github.com/elastic/ecs-logging/blob/main/spec/spec.json) ([#31](https://github.com/elastic/ecs-logging-python/pull/31))
33-
* Add support for `service.name` from APM log correlation ([#32](https://github.com/elastic/ecs-logging-python/pull/32))
34-
* Correctly order `@timestamp`, `log.level`, and `message` fields ([#28](https://github.com/elastic/ecs-logging-python/pull/28))
37+
- Add validation against the ecs-logging [spec](https://github.com/elastic/ecs-logging/blob/main/spec/spec.json) ([#31](https://github.com/elastic/ecs-logging-python/pull/31))
38+
- Add support for `service.name` from APM log correlation ([#32](https://github.com/elastic/ecs-logging-python/pull/32))
39+
- Correctly order `@timestamp`, `log.level`, and `message` fields ([#28](https://github.com/elastic/ecs-logging-python/pull/28))
3540

3641
## 0.5.0 (2020-08-27)
3742

ecs_logging/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from ._stdlib import StdlibFormatter
2121
from ._structlog import StructlogFormatter
2222

23-
__version__ = "1.1.0"
23+
__version__ = "2.0.0"
2424
__all__ = [
2525
"ECS_VERSION",
2626
"StdlibFormatter",

ecs_logging/_stdlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(
112112
# validate was introduced in py3.8 so we need to only provide it if the user provided it
113113
_kwargs["validate"] = validate
114114
super().__init__( # type: ignore[call-arg]
115-
fmt=fmt, datefmt=datefmt, style=style, **_kwargs
115+
fmt=fmt, datefmt=datefmt, style=style, **_kwargs # type: ignore[arg-type]
116116
)
117117

118118
if stack_trace_limit is not None:

0 commit comments

Comments
 (0)