You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,9 +77,13 @@ Any of the previous execution methods accept configuration through the following
77
77
|`GITBASEPG_SERVER_URL`|`--server`|| URL used to access the application in the form `HOSTNAME[:PORT]`. Leave it unset to allow connections from any proxy or public address |
78
78
|`GITBASEPG_DB_CONNECTION`|`--db`|`root@tcp(localhost:3306)/none?maxAllowedPacket=4194304`| gitbase connection string. Use the DSN (Data Source Name) format described in the [Go MySQL Driver docs](https://github.com/go-sql-driver/mysql#dsn-data-source-name). |
79
79
|`GITBASEPG_BBLFSH_SERVER_URL`|`--bblfsh`|`127.0.0.1:9432`| Address where bblfsh server is listening |
80
-
|`GITBASEPG_ENV`|`--env`|`production`| Sets the log level. Use `dev` to enable debug log messages |
81
80
|`GITBASEPG_SELECT_LIMIT`|`--select-limit`|`100`| Default `LIMIT` forced on all the SQL queries done from the UI. Set it to 0 to remove any limit |
82
81
|`GITBASEPG_FOOTER_HTML`|`--footer`|| Allows to add any custom html to the page footer. It must be a string encoded in base64. Use it, for example, to add your analytics tracking code snippet |
82
+
|`LOG_LEVEL`|`--log-level=`|`info`| Logging level (`info`, `debug`, `warning` or `error`) |
83
+
|`LOG_FORMAT`|`--log-format=`|| log format (`text` or `json`), defaults to `text` on a terminal and `json` otherwise |
84
+
|`LOG_FIELDS`|`--log-fields=`|| default fields for the logger, specified in json |
85
+
|`LOG_FORCE_FORMAT`|`--log-force-format`|| ignore if it is running on a terminal or not |
cli.PlainCommand`name:"serve" short-description:"serve the app" long-description:"starts serving the application"`
33
-
Envstring`long:"env" env:"GITBASEPG_ENV" default:"production" description:"Sets the log level. Use 'dev' to enable debug log messages"`
35
+
cli.LogOptions`group:"Log Options"`
34
36
Hoststring`long:"host" env:"GITBASEPG_HOST" default:"0.0.0.0" description:"IP address to bind the HTTP server"`
35
37
Portint`long:"port" env:"GITBASEPG_PORT" default:"8080" description:"Port to bind the HTTP server"`
36
38
ServerURLstring`long:"server" env:"GITBASEPG_SERVER_URL" description:"URL used to access the application in the form 'HOSTNAME[:PORT]'. Leave it unset to allow connections from any proxy or public address"`
0 commit comments