juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
11.02k stars 1.19k forks source link

feat: added support for reading locally generated file logs via vector inst… #5166

Open aayushdhiman01 opened 4 days ago

aayushdhiman01 commented 4 days ago

Type of Change

Description

Added the code for reading locally generated file logs via vector instance, but need to verify that local logs are coming, can u guide how to check that?

Additional Changes

Motivation and Context

How did you test it?

Checklist

lsampras commented 2 days ago

Hey @aayushdhiman01 , Can you take a look at this for reference.

So the logs would be written in a shared local folder and we mount that folder in vector to read them,

You can enable file logging via the config file(development/docker_compose.toml),

The vector/loki/grafana cotainers can be run via docker compose --profile monitoring up -d

aayushdhiman01 commented 1 day ago

@lsampras can you check the changes made, mounted the logs folder in vector , in docker-compose file and enabled file logging in development.toml and docker_compose.toml file.