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