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: RELEASE.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## CI based
4
4
5
-
The release process is also automated in the way any specific commit, from the master branch ideally, can be potentially released, for such it's required the below steps:
5
+
The release process is also automated in the way any specific commit, from the main branch ideally, can be potentially released, for such it's required the below steps:
6
6
7
7
1. Checkout the commit to be released
8
8
1. Create a tag with the format `[0-9]+.[0-9]+.[0-9]+`, i.e.: `1.0.2`
Copy file name to clipboardExpand all lines: docs/Monolog_v2.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ catch(\Exception $exception) {
30
30
// log and do other things ..
31
31
}
32
32
```
33
-
ECS [docs](https://www.elastic.co/guide/en/ecs/current/ecs-error.html) | Service [class](https://github.com/elastic/ecs-logging-php/blob/master/src/Elastic/Types/Error.php)
33
+
ECS [docs](https://www.elastic.co/guide/en/ecs/current/ecs-error.html) | Service [class](https://github.com/elastic/ecs-logging-php/blob/main/src/Elastic/Types/Error.php)
34
34
35
35
### Service
36
36
The service context enables you to provide more attributes describing your service. Setting a version can help you track system behaviour over time.
$logger->notice('this message adds service context, nice :)', ['service' => $serviceContext]);
45
45
```
46
-
ECS [docs](https://www.elastic.co/guide/en/ecs/current/ecs-service.html) | Service [class](https://github.com/elastic/ecs-logging-php/blob/master/src/Elastic/Types/Service.php)
46
+
ECS [docs](https://www.elastic.co/guide/en/ecs/current/ecs-service.html) | Service [class](https://github.com/elastic/ecs-logging-php/blob/main/src/Elastic/Types/Service.php)
47
47
48
48
### User
49
49
The user context allows you to enrich your log entries with user specific attributes such as `user.id` or `user.name` to simplify the discovery of specific log events.
$logger->notice('heya, the context helps you to trace logs more effective', ['user' => $userContext]);
58
58
```
59
-
ECS [docs](https://www.elastic.co/guide/en/ecs/current/ecs-user.html) | Service [class](https://github.com/elastic/ecs-logging-php/blob/master/src/Elastic/Types/User.php)
59
+
ECS [docs](https://www.elastic.co/guide/en/ecs/current/ecs-user.html) | Service [class](https://github.com/elastic/ecs-logging-php/blob/main/src/Elastic/Types/User.php)
60
60
61
61
Please be aware that a method `User::setHash` is available, if you want to obfuscate `user.id`, `user.name`, etc.
62
62
@@ -69,4 +69,4 @@ $tracingContext = new Tracing('<trace-id>', '<transaction-id>');
69
69
70
70
$logger->notice('I am a log message with a trace id, so you can do awesome things in the Logs UI', ['tracing' => $tracingContext]);
0 commit comments