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
By default, TON OS SE logs the most of the information to the console, which is accessible by the next command:
100
+
```commandline
101
+
$ docker logs local-node
102
+
```
103
+
104
+
More verbose logging is configured to `/ton-node/log/` directory inside the running docker container.
105
+
By default, there are two files: `ton-node.log` for all logging and `tvm.log` for tracing of TVM execution:
106
+
code, stack, control registers, gas, etc.
107
+
108
+
Logging configuration is stored in `/ton-node/log_cfg.yml` file. In order to change the default logging verbosity of
109
+
other parameters, you can configure logging in several ways:
110
+
1. In the running container by changing `/ton-node/log_cfg.yml` file:
111
+
112
+
```commandline
113
+
$ docker exec -it local-node bash
114
+
bash-5.0# vi /ton-node/log_cfg.yml
115
+
```
116
+
(in order to exit from VI editor with saving changes press the `ESC` key, then type `:wq` and press the `ENTER` key)
117
+
118
+
Note: `log_cfg.yml` file is normally scanned for changes every 30 seconds, so all changes made to this file in running
119
+
container will be applied only after the scan.
120
+
121
+
Note: after recreation of the container, all changes made in its files will be lost, so use the second way, if you need
122
+
to keep them.
123
+
124
+
2. Before starting of the container, download and edit a copy of [log_cfg.yml](./docker/ton-node/log_cfg.yml) file, then
125
+
mount this file to container's file system in `docker run` command:
126
+
```commandline
127
+
$ docker run -d --name local-node -e USER_AGREEMENT=yes -p80:80 \
128
+
-v /home/user/log_cfg.yml:/ton-node/log_cfg.yml \
129
+
tonlabs/local-node
130
+
```
131
+
After starting of TON OS SE, you can edit this file in your file system without restart.
132
+
133
+
More information about log4rs configuration [in the log4rs documentation](https://docs.rs/log4rs/1.0.0/log4rs/).
134
+
135
+
87
136
## How to connect to TON OS SE Graphql API from SDK
88
137
89
138
**Attention** at the moment there are a few [differences in SE behaviour comparing with a real TON blockchain](https://docs.ton.dev/86757ecb2/p/683279-difference-in-behaviour). Read about them before you start implemennting. Please note that we plan to upgrade the SE behaviour in the next releases so that it will work the same way as a real network.
90
139
91
140
To connect to local blockchain from your application [specify localhost in SDK Client network config](https://docs.ton.dev/86757ecb2/p/5328db-tonclient).
92
141
142
+
93
143
## TON OS SE components
94
144
95
145
*[TON Labs implementation of TON VM written in Rust](https://github.com/tonlabs/ton-labs-vm)
@@ -98,6 +148,7 @@ To connect to local blockchain from your application [specify localhost in SDK C
98
148
*[TON-live explorer](https://ton.live)
99
149
*[Pre-deployed high-performance Giver, ABI v2](contracts)
100
150
151
+
101
152
## TON Live explorer
102
153
103
154
TON Live explorer runs on the same IP and port as TON OS SE, just open http://ip_address:port (e.g. http://127.0.0.1)
@@ -108,12 +159,15 @@ TON Live explorer runs on the same IP and port as TON OS SE, just open http://ip
108
159
In order to build and use TON OS Startup Edition you need Docker.
109
160
To build docker image, run from the repository root:
0 commit comments