Skip to content

Commit 6f51c5d

Browse files
committed
update to docs
Signed-off-by: Neil South <[email protected]>
1 parent 22c11e2 commit 6f51c5d

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

docs/setup/schema.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,30 @@ The `InformaticsGateway` configuration section contains the following sub-sectio
139139
"TimestampFormat": " HH:mm:ss ",
140140
"UseUtcTimestamp": true
141141
}
142-
},
143-
"File": {
144-
"BasePath": "logs",
145-
"FileEncodingName": "utf-8",
146-
"DateFormat": "yyyyMMdd",
147-
"CounterFormat": "000",
148-
"MaxFileSize": 10485760,
149-
"IncludeScopes": true,
150-
"MaxQueueSize": 100,
151-
"TextBuilderType": "Monai.Deploy.InformaticsGateway.Logging.FileLoggingTextFormatter, Monai.Deploy.InformaticsGateway",
152-
"Files": [
153-
{
154-
"Path": "MIG-<date>-<counter>.log"
155-
}
156-
]
157142
}
158143
},
144+
"Serilog": {
145+
"WriteTo": [
146+
{
147+
"Name": "File",
148+
"Args": {
149+
"path": "logs/MTM-.log",
150+
"rollingInterval": "Day",
151+
"rollOnFileSizeLimit": true,
152+
"fileSizeLimitBytes": "10485760",
153+
"retainedFileCountLimit": 30,
154+
"formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog"
155+
}
156+
},
157+
{
158+
"Name": "Http",
159+
"Args": {
160+
//"requestUri": "http://192.168.0.62:5000",
161+
"queueLimitBytes": null
162+
}
163+
}
164+
]
165+
},
159166
"Kestrel": {
160167
"EndPoints": {
161168
"Http": {
@@ -186,7 +193,7 @@ Informatics Gateway validates all configuration options at startup. Any provided
186193
187194
### Logging
188195

189-
Informatics Gateway, by default, is configured to writes all logs to the console as well as text files. The behaviors may be changed in the `Logging` section of the `appsettings.json` file.
196+
Informatics Gateway, by default, is configured to writes all logs to the console as well as text files. The behaviors may be changed in the `Logging` section of the `appsettings.json` file, by uncommenting the `"requestUri": "http://192.168.0.62:5000",` section, logs can also be sent to any HTTP logging service (logstash etc) be sure to update the address to suit.
190197

191198
> [!Note]
192199
> If the Informatics Gateway is running inside a Docker container, additional configuration may be required to limit the size to prevent filling up storage space. Refer to the [Docker documentation](https://docs.docker.com/config/containers/logging/configure/) for additional information.

0 commit comments

Comments
 (0)