?? readme
字號:
$Id: README,v 1.1 2000/03/03 11:47:18 apr Exp $This logger example demonstrate the use of jPOS's Logger subsytem.There's a Logger object where you attach listeners. You can choosefrom various available LogListeners such as: SimpleLogListener (dumps all events to the specified output stream) RotateLogListener (writes to disk, rotating logs at given intervals) OperatorLogListener (e-mails specific tags to a predefined address))LogEvent is a container for various log object that you can add (via its addMessage method). It has built in support forThrowables and SQLException.If the object being added implements Loggeable interface, itsdump() method will get called instead of Object.toString(). Thisallow for well formated, easily parseable Log files.(many jPOS classes such as ISOMsg implements org.jpos.util.Loggeable)This Test.java extends SimpleLogProducer and Implements Loggeable;You don't have to do so on every class, you may want to have justa couple of LogProducers (possibly for different realms) whithinyour application and have some classes implements Loggeable.The "realm" thing allows LogListeners (or logfiles post-parsers) to filter LogEvents.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -