Main is the entrypoint for the containerd runtime v2 logging plugin mode. Should be called only if argv1 == MagicArgv1.
(argv2 string)
| 138 | // |
| 139 | // Should be called only if argv1 == MagicArgv1. |
| 140 | func Main(argv2 string) error { |
| 141 | fn, err := loggerFunc(argv2) |
| 142 | if err != nil { |
| 143 | return err |
| 144 | } |
| 145 | logging.Run(fn) |
| 146 | return nil |
| 147 | } |
| 148 | |
| 149 | // LogConfig is marshalled as "log-config.json" |
| 150 | type LogConfig struct { |
no test coverage detected
searching dependent graphs…