Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging #677

Open
7 tasks
MuhammadKhalilzadeh opened this issue Feb 3, 2025 · 0 comments
Open
7 tasks

Logging #677

MuhammadKhalilzadeh opened this issue Feb 3, 2025 · 0 comments
Labels
backend Backend related tasks/issues enhancement New feature or request frontend Frontend related tasks/issues Main Main issues have sub-issues, breaking them to smaller tasks
Milestone

Comments

@MuhammadKhalilzadeh
Copy link
Collaborator

Logging is essential for monitoring, debugging, and auditing your application. It should be structured and consistent.

Things we need to consider:

  • - Log Levels: Use appropriate log levels (e.g., info, warn, error, debug).
  • - Structured Logging: Use JSON or key-value pairs for logs to make them easier to query and analyze.
  • - Log Storage: Decide where to store logs (e.g., files, databases, etc.)
  • - Performance: Ensure logging does not become a bottleneck.

Implementation in Clean Architecture:

  • Infrastructure Layer:

  • Implement logging libraries (we need to find the best library in Node.js).

  • Configure log storage (e.g., PostgreSQL table, file system, or external service).

  • Application Layer:

  • Log important business events, errors, and warnings.

  • Presentation Layer:

  • Log API requests, responses, and errors.

@MuhammadKhalilzadeh MuhammadKhalilzadeh added backend Backend related tasks/issues enhancement New feature or request frontend Frontend related tasks/issues Main Main issues have sub-issues, breaking them to smaller tasks labels Feb 3, 2025
@MuhammadKhalilzadeh MuhammadKhalilzadeh added this to the 1.1 milestone Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related tasks/issues enhancement New feature or request frontend Frontend related tasks/issues Main Main issues have sub-issues, breaking them to smaller tasks
Projects
None yet
Development

No branches or pull requests

1 participant