定時列印資訊

2021-06-03 18:15:37 字數 873 閱讀 5782

class cl_time_event definition.

public

section.

class-methods: auto_exe for

event  finished of cl_gui_timer importing sender.

endclass.                    "cl_time_event definition

class cl_time_event implementation.

method auto_exe.

statics: cl_second type

i.add

1to cl_second.

write:/ 'refresh' , sy-datum ,sy-timlo.

*    message i001(00) with 'class'.

call

method sender->run( ).

endmethod.                    "on_finished

endclass.                    "cl_time_event implementation

data: ltime type

refto cl_gui_timer.

start-of-selection.

create object ltime.

sethandler cl_time_event=>auto_exe for ltime.

ltime->interval = 5.   "定義相隔間隔

call

method ltime->run( ).

write: '測試timer......'.

tomcat 去掉 列印資訊

1.引用 修改startup.bat第42行 call executable start cmd line args 為 call executable run cmd line args logs catalina.txt 然後在此啟動tomcat,再次檢視catalina.txt,預期的資訊果然...

1 列印資訊

在日常的vc開發中 有充分的理由需要乙個輸出列印資訊的地方 微軟為我們提供了 trace,或者atltrace,但是這必須是在 debug下,並且需要 ide或者 windbg工具的配合使用 但實際上有一種更簡單的方式 不僅僅在 debug下,而且在release下,都可以不依賴任何工具的為我們列印...

儲存終端列印資訊

先要說明為什麼要記錄終端會話,因為常會遇到這樣的情況,終端是有快取大小限制的,當在終端列印的訊息超出快取範圍,它前面的列印訊息就自動丟失了,這對於我們除錯程式會造成障礙,所以有記錄完整終端列印訊息的必要!1使用script記錄linux終端會話 script是大多數linux產品util linux...