Commit 4ae9842
Feat: Added ETW logging support for CNS. (#2700)
* 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]>1 parent 008dadc commit 4ae9842
File tree
4 files changed
+59
-2
lines changed- cns
- logger
- service
4 files changed
+59
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
32 | 50 | | |
33 | 51 | | |
34 | 52 | | |
| |||
69 | 87 | | |
70 | 88 | | |
71 | 89 | | |
| 90 | + | |
72 | 91 | | |
73 | 92 | | |
74 | 93 | | |
| |||
80 | 99 | | |
81 | 100 | | |
82 | 101 | | |
| 102 | + | |
83 | 103 | | |
84 | 104 | | |
85 | 105 | | |
| |||
91 | 111 | | |
92 | 112 | | |
93 | 113 | | |
| 114 | + | |
94 | 115 | | |
95 | 116 | | |
96 | 117 | | |
| |||
102 | 123 | | |
103 | 124 | | |
104 | 125 | | |
| 126 | + | |
105 | 127 | | |
106 | 128 | | |
107 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | 580 | | |
582 | 581 | | |
583 | 582 | | |
| |||
0 commit comments