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
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,39 +80,56 @@ You can build the binary locally by executing the following command from the pro
80
80
81
81
This produces an executable & plugin libraries in the root project directory. To start the Arc server, run:
82
82
83
-
./build/arc --log=stdout --env=config/manual.env
83
+
./build/arc --env=config/manual.env
84
84
85
85
Alternatively, you could execute the following commands to start the server without producing an executable, (but still produce the plugin libraries):
86
86
87
87
make plugins
88
-
go run main.go --log=stdout --env=config/manual.env
88
+
go run main.go --env=config/manual.env
89
+
89
90
90
91
**Note**: Running the executable assumes an active Elasticsearch connection whose url is to be provided in the `.env` file. manual.env configures it to be the localhost.
91
92
93
+
### Logging
94
+
Define the run time flag (`log`) to change the default log mode, the possible options are:
95
+
96
+
#### debug
97
+
Most verbose, use this to get logs for elasticsearch interactions.
98
+
#### info
99
+
Prints the basic information
100
+
#### error (default)
101
+
Only log the errors
102
+
92
103
#### TLS Support
93
104
94
105
You can optionally start arc to serve https requests instead of http requests using the flag https.
95
106
You also need to provide the server key & certificate file location through the environment file.
96
107
manual.env is configured to use demo server key & certificates, which work for localhost.
108
+
```bash
97
109
go run main.go --log=stdout --env=config/manual.env --https
98
-
110
+
```
99
111
If you wish to manually test TLS support at localhost,
100
112
curl needs to be also passed an extra parameter providing the cacert, in this case.
0 commit comments