Skip to content

Feature/Add microseconds timestamp flag#46

Closed
larspehrsson wants to merge 6 commits intomasterfrom
feature/disable_timestamp_flag
Closed

Feature/Add microseconds timestamp flag#46
larspehrsson wants to merge 6 commits intomasterfrom
feature/disable_timestamp_flag

Conversation

@larspehrsson
Copy link
Contributor

Added a new flag to ServiceConfig to enable microseconds in the logfile

    "ServiceConfig": {
        "LogFileTimestampMicroseconds": true
    },

By default it will be false, but if enabled you will have microsecond precision in the logfile

2025/09/16 21:27:07.390650 pc-listener: STDOUT|something happened
2025/09/16 21:27:07.644849 pc-listener: STDOUT|something else happened

Introduces a configuration option, LogFileAddTimestamps, to control the inclusion of timestamps in log entries, defaulting to true for backward compatibility. Updates README and tests to reflect this change, ensuring that timestamps are added by default and can be disabled if required.

Enhances flexibility in log formatting based on user preferences.
@larspehrsson larspehrsson requested review from amir-khassaia, codedance and hiroxy and removed request for codedance September 16, 2025 11:29
@larspehrsson
Copy link
Contributor Author

Replaced by #47

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.

3 participants