ASP.NET Tutorial: Knowing and Comparing Log File
1. Logging in ExceptionLogging.cs
Log Content
- API URL
- Request Parameter
- Response Parameter
How to call the log?
File Name Format
2. Logging in iservices.svc.cs
3. Logging CSV in Executable
Location
File Name Format
Purpose: To save data (probably biometric/face recognition data) in CSV format.
Key Features
- Not a standard log, but structured data storage.
- Ensures unique filenames with date + time format.
- UTF-8 encoding ensures compatibility.
Summary Table
Logging Type | File Name Pattern | Log Folder Path | Log Content Type | Context |
---|---|---|---|---|
(Web) | dd-MM-yy.txt | ~/foldername/ | API URL, Request, Response | Web – Request Flow |
(Web) | filenamedd-MM-yy.txt | ~/foldername/ | Only Response | Web – IPO Logs |
(iservices.svc) | ddMMyy.txt | ~/foldername/subfoldername/ | Single-line logs with a delimiter | Web Services |
(.exe) | filename-MM-yy.txt | /foldername/ | Timestamp + Response | Executable Component |
CSV Export (.exe) | filename_ddMMyyyy_HHmm.csv | /foldername/ | Structured CSV data | Desktop Biometric Logs |
Conclusion
Each logging method serves a unique purpose, depending on the module (Web or Executable) and type of data being logged (API flows, exceptions, biometric logs). This modular logging approach helps in efficient debugging, system auditing, and API behavior tracking.
ASP.NET Core 10.0 Hosting Recommendation
HostForLIFE.eu
HostForLIFE.eu is a popular recommendation that offers various hosting choices. Starting from shared hosting to dedicated servers, you will find options fit for beginners and popular websites. It offers various hosting choices if you want to scale up. Also, you get flexible billing plans where you can choose to purchase a subscription even for one or six months.