Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 707 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 707 Bytes

invoice

Logging

Logging uchun quyidagi qoidalarga amal qiling.

  • readonly logging objectni _logger deb nomlang
  • $"" string interpolation ishlatmang. o'rniga Loggging params[] ni ishlating
    • masalan: User created with [email protected] degan habarni _logger.LogInformation("New user created", user.email); deb log qilish kerak.
  • Exception yuz berganda log qilayotganingizda exception objectni ham Loggerga berish kerak
    • masalan: catch(Exception exception) { _logger.LogError(exception, "bla bla bla"); }

Contributors

Contributors Display