Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

added data into SocketLoggerServer trace logs#64

Open
rmazurok wants to merge 1 commit intomasterfrom
data-in-trace-logs
Open

added data into SocketLoggerServer trace logs#64
rmazurok wants to merge 1 commit intomasterfrom
data-in-trace-logs

Conversation

@rmazurok
Copy link

@rmazurok rmazurok commented Jan 9, 2024

need to see data that has been logged into the files

format: 1
7:34:23.160 [XNIO-2 task-2] TRACE o.logstream.net.SocketLoggerServer - [localhost] logging (properties {NAME=event} filePreffix /${NAME} logType event1 headers [TIMESTAMP NAME VALUE1 VALUE2 VALUE3] types [[1]] data |2021-01-01 01:00:00 event value1 222 333|2021-01-01 01:00:00 event value1 222 333| length 82)

@nofateg please review

Comment on lines +128 to +130
log.trace( "[{}] logging (properties {} filePreffix {} logType {} headers {} types {} data {} length {})",
hostName, properties, filePreffix, logType, headers, types,
"|" + new String( buffer, StandardCharsets.UTF_8 ).replace( "\n", "|" ), length );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would the binary data look like in such a trace?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants