atuttle / Taffy

:candy: The REST Web Service framework for ColdFusion and Lucee
http://taffy.io
Other
225 stars 117 forks source link

LogToLog Exception Logging Adapter #363

Closed dklmuc closed 6 years ago

dklmuc commented 6 years ago

adds a simple exception log adapter which is using cflog

config:

exceptionLogAdapter = "taffy.bonus.LogToLog",
exceptionLogAdapterConfig = {
    logfile = "taffy"
}
atuttle commented 6 years ago

Looks straight forward enough, thanks! Would you mind adding some markdown here in a comment that I can add to the docs later? Same idea as #362

dklmuc commented 6 years ago
## LogToLog

Adapter Path: taffy.bonus.LogToLog<br/>
Configuration Options: (structure)

    ```javascript
    variables.framework.exceptionLogAdapterConfig = {
    logfile = "taffy"
    };

logfile: The name of the log file.

This Adapter logs exceptions to a custom log file in your server log dir. The log file will be created if it not exists.

atuttle commented 3 years ago

Added to the wiki: https://github.com/atuttle/Taffy/wiki/Exception-Logging-Adapters