Mirror from bluesky-social/pds

added info about configuring logging

Changed files
+22
+22
README.md
··· 216 216 217 217 _Note: Your PDS will need to be restarted with those variables. This varies depending on your setup. If you followed this installation guide, run `systemctl restart pds`. You might need to restart the server or recreate the container, depending on what you are using._ 218 218 219 + ### Logging 220 + 221 + By default, logs from the PDS are printed to `stdout` and end up in Docker's log. You can browse them by running: 222 + 223 + ``` 224 + [sudo] docker logs pds 225 + ``` 226 + 227 + Note: these logs are not persisted, so they will be lost after server reboot. 228 + 229 + Alternatively, you can configure the logs to be printed to a file by setting `LOG_DESTINATION`: 230 + 231 + ``` 232 + LOG_DESTINATION=/pds/pds.log 233 + ``` 234 + 235 + You can also change the minimum level of logs to be printed (default: `info`): 236 + 237 + ``` 238 + LOG_LEVEL=debug 239 + ``` 240 + 219 241 ### Updating your PDS 220 242 221 243 It is recommended that you keep your PDS up to date with new versions, otherwise things may break. You can use the `pdsadmin` tool to update your PDS.