Stream: dotnet
Topic: VonkLoader
Nilesh Pagare (Sep 11 2020 at 12:12):
Hi @Marco Visser , @Christiaan Knaap ,
Referring the example on https://docs.fire.ly/vonkloader/index.html , I tried uploading a zip file (o/p generated from Synthea for R4 bundles type Transaction ). I updated the Information Model and Default to Fhir4. But, hitting bunch of errors when uploading a zip file of bundles created from Synthea.
-
Is there any limitation in 3.6.1 that in regards to R4 ?
-
What's the CLI to open the verbose logs ?
-
Is there a github site to open an issue against vonkloader ?
Thanks
Nilesh Pagare (Sep 13 2020 at 23:05):
I am seeing lots errors when the server is started via docker compose. Even after specifying Information Models and default value as Fhir4.0 as shown below , I still see container trying to set up setting for Fhir 3.0, and the database mode still showing Fhir 3.0
- VONK_InformationModel=Fhir4.0
- VONK_InformationModel:Default=Fhir4.0
I would like spool console logs in a file to share with you.
What configuration in the docker-compose files should be added to export console log and rumtime logs from container to external file(s) ?
I tried setting in reference to the page - https://docs.fire.ly/vonk/configuration/logsettings.html but it is not writing the vonk.log file.
- VONKLOG_WriteTo:Name="Async"
- VONKLOG_WriteTo:Args:Configure:Name="RollingFile"
- VONKLOG_WriteTo:Args:Configure:Args:Path="%temp%/vonk.log"
- VONKLOG_WriteTo:Args:Configure:Args:rollingInterval="Day"
- VONKLOG_WriteTo:Args:Configure:Args:fileSizeLimitBytes=""
- VONKLOG_WriteTo:Args:Configure:Args:retainedFileCountLimit="7"
- VONKLOG_WriteTo:Args:Configure:Args:restrictedToMinimumLevel="Verbose"
Your help will be appreciated.
Thank you.
Christiaan Knaap (Sep 14 2020 at 12:17):
The PipelineOptions control which versions of FHIR are available in the server. The Default informationmodel only tells Vonk: "if the request does not specify a FHIR version, use this one."
Furthermore you may need to use __
(double underscore) instead of :
as a separateor in the environment settings because they are evaluated in a Linux container.
Nilesh Pagare (Sep 14 2020 at 12:34):
But, how come it worked for settings to recognize the repository is supposed to be in Sql Server when I set it as VONK_Repository=SQL including VONK_LicenseFile=./..... ?
I tried with double underscore, and it didn't recognize env variables
Christiaan Knaap (Sep 14 2020 at 13:00):
Sorry @Nilesh Pagare , reading through your log settings variables again I think I see what is actually missing: the indexes for array variables (see https://docs.fire.ly/vonk/configuration/environment_variables.html#arrays-in-environment-variables).
WriteTo
and configure
are both arrays, so it should look like this (assuming you keep Console logging first, then File logging, as in the logsettings.default.json):
VONKLOG_WriteTo:1:Args:configure:0:Name="File" //Note: File instead of RollingFile (the latter is deprecated by Serilog)
VONKLOG_WriteTo:1:Args:configure:0:Args:path="%temp%/vonk.log"
etc.
Also note that %temp%
is not evaluated to a temporary directory in Linux, so you probably want to provide a full path.
Nilesh Pagare (Sep 15 2020 at 13:54):
Hi @Christiaan Knaap , even after providing indexes for arrays , I still don't see logs being written in the target folder path.
I would like a copy of console logs in files as well. Is the log in the file system gets written only during API interaction ?
Thank you.
Last updated: Apr 12 2022 at 19:14 UTC