Skip to content

Instantly share code, notes, and snippets.

View SeJIya's full-sized avatar
🗾
EBU SHO PAROVOZ

Dmitry Selyanin SeJIya

🗾
EBU SHO PAROVOZ
View GitHub Profile
@novemberde
novemberde / chilogger.go
Created March 1, 2020 14:46
golang-chi-zerolog
type logFormatter struct{}
type logEntry struct {
userAgent string
method string
addr string
path string
}
func (l logFormatter) NewLogEntry(r *http.Request) middleware.LogEntry {
le := logEntry{
-accesscode -
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-browser-offline -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-cef-allow-browser-underlay - Allow webhelper to create BrowserView underlays
-cef-delaypageload - Enable early-out for known page loads
-cef-disable-breakpad - disables breakpad in crash dumps