|
Mantis - Resin
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 6087 | feature | always | 08-18-17 11:16 | 11-21-17 09:42 | |
|
|
|||||
| Reporter: | wileysaw | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.53 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 4.0.54 | ||
|
|
|||||
| Summary: | 0006087: Add support to Syslog Handler for formatted messages | ||||
| Description: |
Note from user: It's worth just putting this functionality in a base class or something. For now I've added the below to my own handler extending your syslog handler and used that. /** * Sets the formatter. */ @Override public void setFormatter(Formatter formatter) { _formatter = formatter; } /** * Publishes the record new power generation style. */ public void publish(LogRecord record) { if (! isLoggable(record)) return; String value = record.getMessage(); if(_formatter != null) value = _formatter.format(record); Syslog.syslog(1, 6, value); } |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| There are no notes attached to this issue. |