Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last-word shortening algorithm added #1249

Merged
merged 1 commit into from
Apr 5, 2024
Merged

last-word shortening algorithm added #1249

merged 1 commit into from
Apr 5, 2024

Conversation

flicus
Copy link

@flicus flicus commented Apr 5, 2024

Another useful field shortening algorithm added: "last-word"

"line-format": [
            {
                "field": "logger",
                "overflow": "last-word",
                "max-width": 30,
                "min-width": 30,
                "align": "right"
            },
        ],

original log:

2024-03-27 15:22:51.534 DEBUG com.example.digital.ms.excorporate.notification.business.services.implementation.CamelExecutor Get AccountDetailsDTO batchSize:10000, offset:0
2024-03-27 15:22:26.970 DEBUG com.example.digital.ms.excorporate.notification.couchbase.NotificationRepositorylistCorpUsageProcessor:: [QueryResultWithTotal{data=null, total=9}]

resulting log:

2024-03-27T15:22:51.534 DEBUG                  CamelExecutor Get AccountDetailsDTO batchSize:10000, offset:0 
2024-03-27T15:22:26.970 DEBUG         NotificationRepository listCorpUsageProcessor:: [QueryResultWithTotal{data=null, total=9}]                                                                                                           │

@tstack tstack merged commit 45fca37 into tstack:master Apr 5, 2024
1 check failed
@tstack
Copy link
Owner

tstack commented Apr 5, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants