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

Feat: Added ETW logging support for CNS. #2700

Merged
merged 13 commits into from
Apr 26, 2024
Merged

Conversation

sivakami-projects
Copy link
Contributor

@sivakami-projects sivakami-projects commented Apr 21, 2024

Notes:

@sivakami-projects sivakami-projects added cns Related to CNS. logging labels Apr 21, 2024
@sivakami-projects sivakami-projects self-assigned this Apr 21, 2024
@sivakami-projects sivakami-projects marked this pull request as ready for review April 23, 2024 17:57
@sivakami-projects sivakami-projects requested a review from a team as a code owner April 23, 2024 17:57
cns/logger/cnslogger.go Outdated Show resolved Hide resolved
cns/logger/cnslogger_windows.go Outdated Show resolved Hide resolved
cns/configuration/configuration.go Outdated Show resolved Hide resolved
cns/logger/cnslogger.go Outdated Show resolved Hide resolved
cns/logger/cnslogger.go Outdated Show resolved Hide resolved
cns/logger/cnslogger_linux.go Outdated Show resolved Hide resolved
cns/logger/cnslogger_windows.go Outdated Show resolved Hide resolved
cns/logger/cnslogger_linux.go Outdated Show resolved Hide resolved
cns/logger/zaplogger.go Outdated Show resolved Hide resolved
sivakami-projects and others added 5 commits April 23, 2024 13:21
Co-authored-by: Evan Baker <[email protected]>
Signed-off-by: sivakami-projects <[email protected]>
Co-authored-by: Evan Baker <[email protected]>
Signed-off-by: sivakami-projects <[email protected]>
…gs added to ensure zap instance is not nil.
cns/logger/cnslogger.go Outdated Show resolved Hide resolved
cns/logger/cnslogger_windows.go Outdated Show resolved Hide resolved
cns/logger/cnslogger_windows.go Outdated Show resolved Hide resolved
cns/logger/zaplogger.go Outdated Show resolved Hide resolved
@sivakami-projects
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sivakami-projects sivakami-projects added this pull request to the merge queue Apr 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 25, 2024
@sivakami-projects sivakami-projects added this pull request to the merge queue Apr 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 25, 2024
@sivakami-projects sivakami-projects added this pull request to the merge queue Apr 26, 2024
Merged via the queue into master with commit 4ae9842 Apr 26, 2024
12 checks passed
@sivakami-projects sivakami-projects deleted the CNS-ETW-Branch branch April 26, 2024 05:57
paulyufan2 pushed a commit that referenced this pull request Apr 29, 2024
* Added ETW logging support for CNS.

* Renamed unused parameter. Removed punctuation mark from error message.

* Added flag to write logs to ETW. Zap logger writes only to ETW in windows. And is NIL in Linux.

* Enable ETW logging in CNS through config.

* Provide flexibility on zap logging format.

* renamed zap logger instance.

* Renamed method.

* Update cns/logger/cnslogger_windows.go

Co-authored-by: Evan Baker <[email protected]>
Signed-off-by: sivakami-projects <[email protected]>

* Update cns/logger/cnslogger_linux.go

Co-authored-by: Evan Baker <[email protected]>
Signed-off-by: sivakami-projects <[email protected]>

* Use Nop core until zap is implemented for all the logs in CNS.

Co-authored-by: Evan Baker <[email protected]>
Signed-off-by: sivakami-projects <[email protected]>

* return Nopcore for Linux until zap is fully implmemented. Removed flags added to ensure zap instance is not nil.

* cganged method name.

* Moved zap logger intilization in cnslogger file. Code polishes.

---------

Signed-off-by: sivakami-projects <[email protected]>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Evan Baker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cns Related to CNS. logging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants