logger.q
logging to disk/table/console a logger based on java's, including handlers,filters,formatters. But note there is only one global logger.
handlers - are notified when a logging event occurs
formatters - convert a logrecord into a string
filters - restrict what messages are actually logged
example uses
handlers - are notified when a logging event occurs
formatters - convert a logrecord into a string
filters - restrict what messages are actually logged
example uses
.logger.addHandler[.logger.getConsoleHandler[ .logger.getLevelFilter[`INFO]; .logger.getSimpleFormatter[] ] ] .logger.addHandler[.logger.getFileHandler[ .logger.getLevelFilter[`WARNING]; .logger.getXMLFormatter[]; `:a.xml ] ] .logger.addHandler[.logger.getTableHandler[ .logger.getLevelFilter[`INFO]; `bob ] ] .logger.info["myClass";"err txt message"]
- author - Ryan Hamilton
Entity Summary
Entities | Short Description |
---|---|
.logger.addHandler | adds a handler to the list of log handlers notified |
.logger.calcPi | Example of calculating pi just to demonstrate full range of |
.logger.config | |
.logger.f | |
.logger.fine | |
.logger.finer | |
.logger.finest | |
.logger.frmt | change any arg passed in, into a string |
.logger.getConsoleHandler | A simple handler for writing formatted records to Console |
.logger.getFileHandler | A handler that writes formatted log records to a single file |
.logger.getLevelFilter | Filters logRecords by only permitting ones at the filterLeve |
.logger.getSimpleFormatter | Writes brief "human-readable" summaries of log records. |
.logger.getTableHandler | A handler that writes log records to a single table |
.logger.getXMLFormatter | Writes detailed XML-structured information. |
.logger.handlers | |
.logger.info | |
.logger.levels | |
.logger.logTables | |
.logger.loq | log an actual message, notice its spelt with a Q, loQ, apply |
.logger.off | stop logging remote calls |
.logger.on | Turn on logging. |
.logger.operations | Table where each row represents one remote call. |
.logger.severe | Handy Functions to make calling easier |
.logger.warning |
Entity Details
.logger.calcPi
Example of calculating pi just to demonstrate full range of qdoc tags etc.
Return: | value of PI to n decimal places |
---|---|
Parameters: |
|
compatibility-break: |
|
version: | 1.0 |
.logger.loq
log an actual message, notice its spelt with a Q, loQ, apply all handlers to this latest log entry
Examples: |
|
---|---|
Parameters: |
|
.logger.operations
Table where each row represents one remote call.
Columns: |
|
---|