File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
contributors/devel/sig-instrumentation Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -38,3 +38,25 @@ Logs generated by `ErrorS` command may be enhanced with additional debug informa
38
38
As per the comments, the practical default level is V(2). Developers and QE
39
39
environments may wish to run at V(3) or V(4). If you wish to change the log
40
40
level, you can pass in ` -v=X ` where X is the desired maximum level to log.
41
+
42
+ ## Logging header formats
43
+
44
+ An example logging message is
45
+ ```
46
+ I0528 19:15:22.737538 47512 logtest.go:52] msg...
47
+ ```
48
+
49
+ This log line have this form:
50
+ ```
51
+ Lmmdd hh:mm:ss.uuuuuu threadid file:line] msg...
52
+ where the fields are defined as follows:
53
+ L A single character, representing the log level (eg 'I' for INFO)
54
+ mm The month (zero padded; ie May is '05')
55
+ dd The day (zero padded)
56
+ hh:mm:ss.uuuuuu Time in hours, minutes and fractional seconds
57
+ threadid The space-padded thread ID as returned by GetTID()
58
+ file The file name
59
+ line The line number
60
+ msg The user-supplied message
61
+ ```
62
+ See more in [ here] ( https://github.com/kubernetes/klog/blob/9ad246211af1ed84621ee94a26fcce0038b69cd1/klog.go#L581-L597 )
You can’t perform that action at this time.
0 commit comments