Unverified Commit 3291b5f1 authored by Stan Kladko's avatar Stan Kladko Committed by GitHub

Merge pull request #39 from skalenetwork/SKALE-2077-cleanup-sgx

SKALE-2077 Added rotating log files
parents 31b40357 7e252ab9
...@@ -28,6 +28,7 @@ Table of Contents ...@@ -28,6 +28,7 @@ Table of Contents
* [Clone this repository and its submodules](#clone-this-repository-and-its-submodules) * [Clone this repository and its submodules](#clone-this-repository-and-its-submodules)
* [Try instantly in simulation mode](#try-instantly-in-simulation-mode) * [Try instantly in simulation mode](#try-instantly-in-simulation-mode)
* [Start, stop and upgrade sgxwallet](#start-stop-and-upgrade-sgxwallet) * [Start, stop and upgrade sgxwallet](#start-stop-and-upgrade-sgxwallet)
* [Configure logging](#configure-logging)
* [Enable SGX on your machine](#enable-sgx-on-your-machine) * [Enable SGX on your machine](#enable-sgx-on-your-machine)
* [Enable "software-controlled" SGX](#enable-software-controlled-sgx) * [Enable "software-controlled" SGX](#enable-software-controlled-sgx)
* [Install SGX driver](#install-sgx-driver) * [Install SGX driver](#install-sgx-driver)
...@@ -121,6 +122,19 @@ Note: sgxwallet operates on network ports 1026 (https) and 1027 (http for initia ...@@ -121,6 +122,19 @@ Note: sgxwallet operates on network ports 1026 (https) and 1027 (http for initia
If you have a firewall on your network, please make sure these ports are open so clients are able to If you have a firewall on your network, please make sure these ports are open so clients are able to
connect to the server. connect to the server.
## Configure logging
By default, sgxwallet will log into default Docker logs, which are rotated into four files 10M each.
To send logs to an external syslog service, edit docker compose YAML file to specify logging configuration as
```
logging:
driver: syslog
options:
syslog-address: "tcp://SYSLOG_SERVER_IP:PORT"
```
See docker-compose documentation for more options.
## Enable SGX on your machine ## Enable SGX on your machine
......
...@@ -11,6 +11,11 @@ services: ...@@ -11,6 +11,11 @@ services:
- "/dev/mei0" - "/dev/mei0"
volumes: volumes:
- ./sgx_data:/usr/src/sdk/sgx_data - ./sgx_data:/usr/src/sdk/sgx_data
logging:
driver: json-file
options:
max-size: "10m"
max-file: "4"
restart: unless-stopped restart: unless-stopped
command: -s command: -s
......
...@@ -8,6 +8,11 @@ services: ...@@ -8,6 +8,11 @@ services:
- "1028:1028" - "1028:1028"
volumes: volumes:
- ./sgx_data:/usr/src/sdk/sgx_data - ./sgx_data:/usr/src/sdk/sgx_data
logging:
driver: json-file
options:
max-size: "10m"
max-file: "4"
restart: unless-stopped restart: unless-stopped
command: -s -d command: -s -d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment