Added loglevel arg to C API
This commit is contained in:
@@ -34,9 +34,10 @@ Include the following in the linker path when compiling tests:
|
|||||||
### Starting
|
### Starting
|
||||||
To start Stabber on port 5230 for example:
|
To start Stabber on port 5230 for example:
|
||||||
```c
|
```c
|
||||||
stbbr_start(5230, 0);
|
stbbr_start(stbbr_log_t loglevel, 5230, 0);
|
||||||
```
|
```
|
||||||
The second argument is the port to use for the HTTP interface, a value of 0 will not start the HTTP daemon.
|
The second argument is the port to use for the HTTP interface, a value of 0 will not start the HTTP daemon.
|
||||||
|
`loglevel` must be one of `STBBR_LOGDEBUG`, `STBBR_LOGINFO`, `STBBR_LOGWARN, `STBBR_LOGERROR`.
|
||||||
|
|
||||||
### Stopping
|
### Stopping
|
||||||
To stop Stabber:
|
To stop Stabber:
|
||||||
|
|||||||
Reference in New Issue
Block a user