-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add class for additional custom attributes
- Loading branch information
1 parent
e3131fa
commit 64e381c
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
group=com.holidaycheck.soil | ||
name=gcloud-logging-slf4j-logback | ||
version=1.1.11 | ||
version=1.2.0 |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/google/cloud/logging/CustomAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.google.cloud.logging; | ||
|
||
import java.util.Map; | ||
|
||
public class CustomAttributes { | ||
|
||
private final Map<String, Object> attributes; | ||
|
||
public Map<String, Object> getAttributes() { | ||
return attributes; | ||
} | ||
|
||
public CustomAttributes(Map<String, Object> attributes) { | ||
this.attributes = attributes; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters