如何使用Windows服务编写日志? [英] How to write a log using a windows service?
本文介绍了如何使用Windows服务编写日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用Windows服务编写日志,该服务应在文本文件中写入系统登录时间和关机时间?
How to write a log using a windows service which should write system log on time and shutdown time in a text file?
推荐答案
检查此链接
http://stackoverflow.com/questions/6185608/getting-服务器每天使用c重新启动计数
check this link
http://stackoverflow.com/questions/6185608/getting-server-restart-count-in-a-day-using-c
这篇关于如何使用Windows服务编写日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文