Contents
When should you login on an application?
some application events should be logged: for major components of an application we may log lifecycle events like start, stop and restart. some security-related events may be logged such as unauthorized url access attempts, user logins etc. some resource thresholds may be exceeded and should also be logged.
What do I log into a web app?
Some things to log:
- business actions, such as adding/deleting items. Talk to your app’s business owner to come up with a list of things that are useful. These should make sense to the business, not to you (for example: when user submitted report, when user creates a new process, etc)
- exceptions.
- exceptions.
- exceptions.
How to configure log files for a web site?
The element of the element contains attributes that allow you to configure logging for a site on IIS 7 and later. For example, you can enable or disable logging, configure the format of the IIS log file, specify the categories of information to store in the log file, and change the directory where the log file is stored.
What should be included in a request log?
In the case of a Web Application or API, the requested endpoint URL and context header and body is logged. Request logs reveal information on your application’s usage details like who is using it, when it is used and what part of the application is used. Audit trails are a record of the changes that have been made to your data.
Where can I find logs for my application?
Some of these logs can be captured outside the application via infrastructure logging such as network or firewall logs and operating system events. However, certain events which originate from within the application itself like errors can only be logged by the application.
Which is the best way to log API logs?
If your server is logging with this category my.service.api. (where apitoken is specific to a given user), then you could either log all the API logs by allowing my.service.api or a single misbehaving API user by logging with a more detailed level and the category my.service.api. .