This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
283 additions
and
12 deletions.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"correlationId" : "2660df70-a524-11ea-a34f-f01898696750", | ||
"message" : "Message received", | ||
"tracePoint" : "START", | ||
"priority" : "INFO", | ||
"elapsed" : 0, | ||
"locationInfo" : { | ||
"lineInFile" : "160", | ||
"component" : "json-logger:logger", | ||
"fileName" : "test-json-logger-basic.xml", | ||
"rootContainer" : "test-json-datamasking" | ||
}, | ||
"timestamp" : "2020-06-02T22:55:26.991Z", | ||
"content" : { | ||
"payload" : { | ||
"balance" : "$1,611.66", | ||
"age" : 28, | ||
"name" : "Xxxxx Xxxxxxx", | ||
"gender" : "male", | ||
"company" : "SENTIA", | ||
"email" : "[email protected]", | ||
"phone" : "+* (***) ***-****", | ||
"addresses" : [ { | ||
"street_number" : "111", | ||
"street_name" : "Sesame st", | ||
"state" : "XX" | ||
}, { | ||
"street_number" : "***", | ||
"street_name" : "Xxxxxx xx", | ||
"state" : "XX" | ||
}, { | ||
"street_number" : "333", | ||
"street_name" : "Sesame st", | ||
"state" : "XX" | ||
} ] | ||
} | ||
}, | ||
"applicationName" : "test-json-logger", | ||
"applicationVersion" : "1.0.0-SNAPSHOT", | ||
"environment" : "datamasking", | ||
"threadName" : "[MuleRuntime].uber.07: [test-json-logger].test-json-datamasking.BLOCKING @71ebeb62" | ||
} | ||
|
||
|
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,24 @@ | ||
{ | ||
"balance": "$1,611.66", | ||
"age": 28, | ||
"name": "Avila Padilla", | ||
"gender": "male", | ||
"company": "SENTIA", | ||
"email": "[email protected]", | ||
"phone": "+1 (935) 409-2876", | ||
"addresses": [{ | ||
"street_number": "111", | ||
"street_name": "Sesame st", | ||
"state": "AA" | ||
},{ | ||
"street_number": "222", | ||
"street_name": "Sesame st", | ||
"state": "BB" | ||
},{ | ||
"street_number": "333", | ||
"street_name": "Sesame st", | ||
"state": "CC" | ||
}] | ||
} | ||
|
||
|
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,15 @@ | ||
{ | ||
"isActive": false, | ||
"balance": "$1,611.66", | ||
"picture": "http://placehold.it/32x32", | ||
"age": 28, | ||
"eyeColor": "green", | ||
"name": "Avila Padilla", | ||
"gender": "male", | ||
"company": "SENTIA", | ||
"email": "[email protected]", | ||
"phone": "+1 (935) 409-2876", | ||
"address": "414 Jefferson Avenue, Trucksville, Mississippi, 5972" | ||
} | ||
|
||
|
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,39 @@ | ||
{ | ||
"stringifyAny": "{\"isActive\": false,\"balance\": \"$1,611.66\",\"picture\": \"http://placehold.it/32x32\",\"age\": 28,\"eyeColor\": \"green\",\"name\": \"Avila Padilla\",\"gender\": \"male\",\"company\": \"SENTIA\",\"email\": \"[email protected]\",\"phone\": \"+1 (935) 409-2876\",\"address\": \"414 Jefferson Avenue, Trucksville, Mississippi, 5972\"}", | ||
"stringifyNonJSON": { | ||
"isActive": false, | ||
"balance": "$1,611.66", | ||
"picture": "http://placehold.it/32x32", | ||
"age": 28, | ||
"eyeColor": "green", | ||
"name": "Avila Padilla", | ||
"gender": "male", | ||
"company": "SENTIA", | ||
"email": "[email protected]", | ||
"phone": "+1 (935) 409-2876", | ||
"address": "414 Jefferson Avenue, Trucksville, Mississippi, 5972" | ||
}, | ||
"stringifyAnyWithMetadata": { | ||
"data": "{\"isActive\": false,\"balance\": \"$1,611.66\",\"picture\": \"http://placehold.it/32x32\",\"age\": 28,\"eyeColor\": \"green\",\"name\": \"Avila Padilla\",\"gender\": \"male\",\"company\": \"SENTIA\",\"email\": \"[email protected]\",\"phone\": \"+1 (935) 409-2876\",\"address\": \"414 Jefferson Avenue, Trucksville, Mississippi, 5972\"}", | ||
"contentLength": 358, | ||
"dataType": "application/json" | ||
}, | ||
"stringifyNonJSONWithMetadata": { | ||
"data": { | ||
"isActive": false, | ||
"balance": "$1,611.66", | ||
"picture": "http://placehold.it/32x32", | ||
"age": 28, | ||
"eyeColor": "green", | ||
"name": "Avila Padilla", | ||
"gender": "male", | ||
"company": "SENTIA", | ||
"email": "[email protected]", | ||
"phone": "+1 (935) 409-2876", | ||
"address": "414 Jefferson Avenue, Trucksville, Mississippi, 5972" | ||
}, | ||
"contentLength": 358, | ||
"dataType": "application/json" | ||
} | ||
} | ||
|
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,42 @@ | ||
[{ | ||
"correlationId" : "2660df70-a524-11ea-a34f-f01898696750", | ||
"message" : "Message received 111", | ||
"tracePoint" : "START", | ||
"priority" : "INFO", | ||
"elapsed" : 0, | ||
"locationInfo" : { | ||
"lineInFile" : "160", | ||
"component" : "json-logger:logger", | ||
"fileName" : "test-json-logger-basic.xml", | ||
"rootContainer" : "test-json-datamasking" | ||
}, | ||
"timestamp" : "2020-06-02T22:55:26.991Z", | ||
"content" : "some content", | ||
"applicationName" : "test-json-logger", | ||
"applicationVersion" : "1.0.0-SNAPSHOT", | ||
"environment" : "datamasking", | ||
"threadName" : "[MuleRuntime].uber.07: [test-json-logger].test-json-datamasking.BLOCKING @71ebeb62" | ||
},{ | ||
"correlationId" : "2660df70-a524-11ea-a34f-f01898696750", | ||
"message" : "Message received 222", | ||
"tracePoint" : "END", | ||
"priority" : "INFO", | ||
"elapsed" : 10, | ||
"locationInfo" : { | ||
"lineInFile" : "160", | ||
"component" : "json-logger:logger", | ||
"fileName" : "test-json-logger-basic.xml", | ||
"rootContainer" : "test-json-datamasking" | ||
}, | ||
"timestamp" : "2020-06-02T22:55:26.991Z", | ||
"content" : "some content", | ||
"applicationName" : "test-json-logger", | ||
"applicationVersion" : "1.0.0-SNAPSHOT", | ||
"environment" : "datamasking", | ||
"threadName" : "[MuleRuntime].uber.07: [test-json-logger].test-json-datamasking.BLOCKING @71ebeb62" | ||
}] | ||
|
||
|
||
|
||
|
||
|
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,22 @@ | ||
{ | ||
"applicationName" : "test-json-logger-old", | ||
"applicationVersion" : "1.0.0-SNAPSHOT", | ||
"content" : "{\n \"payload\": {\n \"_id\": \"5e9f57d7f7a3ddd837007857\",\n \"index\": 0,\n \"guid\": \"bab190b0-61a7-4937-a38f-dbf3ee6de808\",\n \"isActive\": false,\n \"balance\": \"$1,611.66\",\n \"picture\": \"http://placehold.it/32x32\",\n \"age\": 28,\n \"eyeColor\": \"green\",\n \"name\": \"Avila Padilla\",\n \"gender\": \"male\",\n \"company\": \"SENTIA\",\n \"email\": \"[email protected]\",\n \"phone\": \"+1 (935) 409-2876\",\n \"address\": \"414 Jefferson Avenue, Trucksville, Mississippi, 5972\",\n \"about\": \"Eu exercitation dolore reprehenderit excepteur ullamco aliquip. Excepteur elit officia dolor eu excepteur et sit non laborum duis id culpa reprehenderit. Non est cupidatat laborum occaecat ad esse consectetur cupidatat incididunt mollit. Officia Lorem nisi reprehenderit sint irure laboris incididunt nisi pariatur fugiat. Proident velit sit duis mollit incididunt labore sunt dolore non proident irure minim et reprehenderit.\\r\\n\",\n \"registered\": \"2014-05-26T02:45:32 +07:00\"\n }\n}", | ||
"correlationId" : "06316310-a1f9-11ea-8060-f01898696750", | ||
"elapsed" : "0", | ||
"environment" : "basic", | ||
"locationInfo" : { | ||
"component" : "json-logger:logger", | ||
"fileName" : "test-json-logger-basic.xml", | ||
"lineInFile" : "17", | ||
"location" : "test-json-basic/processors/0", | ||
"rootContainer" : "test-json-basic" | ||
}, | ||
"message" : "Message received", | ||
"priority" : "INFO", | ||
"threadName" : "[MuleRuntime].uber.03: [test-json-logger-old].test-json-basic.BLOCKING @686dd234", | ||
"timestamp" : "2020-05-29T22:09:11.106Z", | ||
"tracePoint" : "START" | ||
} | ||
|
||
|
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,39 @@ | ||
{ | ||
"correlationId" : "24c2e5f0-a1fa-11ea-8918-f01898696750", | ||
"message" : "Message received", | ||
"tracePoint" : "START", | ||
"priority" : "INFO", | ||
"elapsed" : 0, | ||
"locationInfo" : { | ||
"lineInFile" : "55", | ||
"component" : "json-logger:logger", | ||
"fileName" : "test-json-logger-basic.xml", | ||
"rootContainer" : "test-json-basic" | ||
}, | ||
"timestamp" : "2020-05-29T22:17:11.930Z", | ||
"content" : { | ||
"payload" : { | ||
"_id" : "5e9f57d7f7a3ddd837007857", | ||
"index" : 0, | ||
"guid" : "bab190b0-61a7-4937-a38f-dbf3ee6de808", | ||
"isActive" : false, | ||
"balance" : "$1,611.66", | ||
"picture" : "http://placehold.it/32x32", | ||
"age" : 28, | ||
"eyeColor" : "green", | ||
"name" : "Avila Padilla", | ||
"gender" : "male", | ||
"company" : "SENTIA", | ||
"email" : "[email protected]", | ||
"phone" : "+1 (935) 409-2876", | ||
"address" : "414 Jefferson Avenue, Trucksville, Mississippi, 5972", | ||
"about" : "Eu exercitation dolore reprehenderit excepteur ullamco aliquip. Excepteur elit officia dolor eu excepteur et sit non laborum duis id culpa reprehenderit. Non est cupidatat laborum occaecat ad esse consectetur cupidatat incididunt mollit. Officia Lorem nisi reprehenderit sint irure laboris incididunt nisi pariatur fugiat. Proident velit sit duis mollit incididunt labore sunt dolore non proident irure minim et reprehenderit.\r\n", | ||
"registered" : "2014-05-26T02:45:32 +07:00" | ||
} | ||
}, | ||
"applicationName" : "test-json-logger", | ||
"applicationVersion" : "1.0.0-SNAPSHOT", | ||
"environment" : "basic", | ||
"threadName" : "[MuleRuntime].uber.01: [test-json-logger].test-json-basic.BLOCKING @5c2c3628" | ||
} | ||
|
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,22 @@ | ||
{ | ||
"correlationId" : "24c2e5f0-a1fa-11ea-8918-f01898696750", | ||
"message" : "Doing more stuff", | ||
"tracePoint" : "AFTER_TRANSFORM", | ||
"priority" : "INFO", | ||
"elapsed" : 344, | ||
"locationInfo" : { | ||
"lineInFile" : "95", | ||
"component" : "json-logger:logger", | ||
"fileName" : "test-json-logger-basic.xml", | ||
"rootContainer" : "test-json-basic" | ||
}, | ||
"timestamp" : "2020-05-29T22:17:12.274Z", | ||
"content" : { | ||
"payload" : "<?xml version='1.0' encoding='UTF-8'?><rootXML><payload><_id>5e9f57d7f7a3ddd837007857</_id><index>0</index><guid>bab190b0-61a7-4937-a38f-dbf3ee6de808</guid><isActive>false</isActive><balance>$1,611.66</balance><picture>http://placehold.it/32x32</picture><age>28</age><eyeColor>green</eyeColor><name>Avila Padilla</name><gender>male</gender><company>SENTIA</company><email>[email protected]</email><phone>+1 (935) 409-2876</phone><address>414 Jefferson Avenue, Trucksville, Mississippi, 5972</address><about>Eu exercitation dolore reprehenderit excepteur ullamco aliquip. Excepteur elit officia dolor eu excepteur et sit non laborum duis id culpa reprehenderit. Non est cupidatat laborum occaecat ad esse consectetur cupidatat incididunt mollit. Officia Lorem nisi reprehenderit sint irure laboris incididunt nisi pariatur fugiat. Proident velit sit duis mollit incididunt labore sunt dolore non proident irure minim et reprehenderit.\n</about><registered>2014-05-26T02:45:32 +07:00</registered></payload></rootXML>" | ||
}, | ||
"applicationName" : "test-json-logger", | ||
"applicationVersion" : "1.0.0-SNAPSHOT", | ||
"environment" : "basic", | ||
"threadName" : "[MuleRuntime].uber.01: [test-json-logger].test-json-basic.BLOCKING @5c2c3628" | ||
} | ||
|
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,20 @@ | ||
{ | ||
"correlationId" : "8c2fe100-a1fc-11ea-9a08-f01898696750", | ||
"message" : "Message received", | ||
"tracePoint" : "START", | ||
"priority" : "INFO", | ||
"elapsed" : 0, | ||
"locationInfo" : { | ||
"lineInFile" : "55", | ||
"component" : "json-logger:logger", | ||
"fileName" : "test-json-logger-basic.xml", | ||
"rootContainer" : "test-json-basic" | ||
}, | ||
"timestamp" : "2020-05-29T22:34:24.442Z", | ||
"content" : "{\n \"payload\": {\n \"_id\": \"5e9f57d7f7a3ddd837007857\",\n \"index\": 0,\n \"guid\": \"bab190b0-61a7-4937-a38f-dbf3ee6de808\",\n \"isActive\": false,\n \"balance\": \"$1,611.66\",\n \"picture\": \"http://placehold.it/32x32\",\n \"age\": 28,\n \"eyeColor\": \"green\",\n \"name\": \"Avila Padilla\",\n \"gender\": \"male\",\n \"company\": \"SENTIA\",\n \"email\": \"[email protected]\",\n \"phone\": \"+1 (935) 409-2876\",\n \"address\": \"414 Jefferson Avenue, Trucksville, Mississippi, 5972\",\n \"about\": \"Eu exercitation dolore reprehenderit excepteur ullamco aliquip. Excepteur elit officia dolor eu excepteur et sit non laborum duis id culpa reprehenderit. Non est cupidatat laborum occaecat ad esse consectetur cupidatat incididunt mollit. Officia Lorem nisi reprehenderit sint irure laboris incididunt nisi pariatur fugiat. Proident velit sit duis mollit incididunt labore sunt dolore non proident irure minim et reprehenderit.\\r\\n\",\n \"registered\": \"2014-05-26T02:45:32 +07:00\"\n }\n}", | ||
"applicationName" : "test-json-logger", | ||
"applicationVersion" : "1.0.0-SNAPSHOT", | ||
"environment" : "local", | ||
"threadName" : "[MuleRuntime].uber.01: [test-json-logger].test-json-basic.BLOCKING @3ed4a508" | ||
} | ||
|
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,22 +1,26 @@ | ||
# Json-logger Extension | ||
|
||
## 1.1.0 version - Release notes | ||
## 2.0.0 version - Release notes | ||
|
||
New features: | ||
* External Destinations | ||
* Data masking | ||
|
||
Improvements: | ||
* Removed Guava and caching in general with a more efficient handling of timers (for elapsed time) | ||
* Optimized generation of JSON output | ||
* Code optimizations | ||
* Minimized dependency footprint (down from ~23MB to ~3MB) | ||
* Optimized parsing of TypedValue content fields | ||
* Field ordering | ||
|
||
More details in the coming blog post (stay tuned!) | ||
|
||
## 1.1.0 version - Release notes | ||
|
||
New features: | ||
* Scoped loggers to capture "scope bound elapsed time". Great for performance tracking of specific components (e.g. outbound calls) | ||
* Added "Parse content fields in json output" flag so that content fields can become part of final JSON output rather than a "stringified version" of the content | ||
|
||
Add this dependency to your application pom.xml | ||
Improvements: | ||
* Removed Guava and caching in general with a more efficient handling of timers (for elapsed time) | ||
* Optimized generation of JSON output | ||
* Code optimizations | ||
* Minimized dependency footprint (down from ~23MB to ~13MB) | ||
* Optimized parsing of TypedValue content fields | ||
|
||
``` | ||
<groupId>YOUR_ORG_ID</groupId> | ||
<artifactId>json-logger</artifactId> | ||
<version>1.1.0-rc1</version> | ||
``` |