Need help how to store logs
Hi all
I need a way by which i can store logs presistely
My log which currently only displayed over terminal are like this
16:47:40 │ INFO │ app.infrastructure.postgres.candle_repo │ bulk_save → candle_3343617 (token=3343617): inserting 15000 candles
16:47:40 │ INFO │ app.application.service.historical_service │ [PERF] Chunk 68/69: api=1193ms | transform=66ms | db_write=320ms | rows=15000
16:47:42 │ INFO │ app.infrastructure.postgres.candle_repo │ bulk_save → candle_3343617 (token=3343617): inserting 11625 candles
16:47:42 │ INFO │ app.application.service.historical_service │ [PERF] Chunk 69/69: api=1112ms | transform=127ms | db_write=245ms | rows=11625
16:47:42 │ INFO │ app.application.service.historical_service │ [SUMMARY] 3343617 — api=52.1s (74%) | transform=4.0s (6%) | db_write=13.9s (20%) | total_rows=671002
16:47:42 │ INFO │ app.application.service.historical_service │ ✓ 3343617 done — 671002 candles saved
16:47:42 │ INFO │ app.application.service.historical_service │ [1/1] took 94.9s | Elapsed: 1m 34s | ETA: 0s | Remaining: 0 instruments
16:47:43 │ INFO │ app.application.service.historical_service │ ✓ Batch complete — 1 instruments in 1m 35s
16:47:43 │ INFO │ app.application.service.historical_service │ ✓ Step 3/3 — Fetch complete (job_group_id=774f5580-1b7e-4dc4-bb7a-dabd2b39b5f8)
What i am trying to do is to store these logs in a seperate file or table whichever is good