I want to figure out when the services was start up and terminated. Are there any kind log file about it?
相关问题
- I want to trace logs using a Macro multi parameter
- Error message 'No handlers could be found for
- convert logback.xml to log4j.properties
- Django management command doesn't show logging
- Why does a windows service, hosting an NserviceBus
相关文章
- how do I log requests and responses for debugging
- XCopy or MOVE do not work when a WCF Service runs
- Android Studio doesn't display logs by package
- Problem installing windows service
- Stacktrace does not print in Glassfish 4.1 Cluster
- Out of curiosity — why don't logging APIs impl
- Laravel log file based on date
- Can't start Tomcat as Windows Service
The most likely place to find this sort of information is in the event viewer (under Administrative tools in XP or run eventvwr) This is where most services log warnings errors etc.
Under Windows 7, open the Event Viewer. You can do this the way Gishu suggested for XP, typing
eventvwr
from the command line, or by opening the Control Panel, selecting System and Security, then Administrative Tools and finally Event Viewer. It may require UAC approval or an admin password.In the left pane, expand Windows Logs and then System. You can filter the logs with Filter Current Log... from the Actions pane on the right and selecting "Service Control Manager." Or, depending on why you want this information, you might just need to look through the Error entries.
The actual log entry pane (not shown) is pretty user-friendly and self-explanatory. You'll be looking for messages like the following:
Through the Computer management console, navigate through Event Viewer > Windows Logs > System. Every services that change state will be logged here.
You'll see info like: The XXXX service entered the running state or The XXXX service entered the stopped state, etc.
Take a look at the
System
log in Windows EventViewer (eventvwr
from the command line).You should see entries with source as 'Service Control Manager'. e.g. on my WinXP machine,