Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006087 [Resin] feature always 08-18-17 11:16 11-21-17 09:42
Reporter wileysaw View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.53
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);
  }
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
08-18-17 11:16 wileysaw New Issue
08-18-17 14:30 ferg Assigned To  => ferg
08-18-17 14:30 ferg Status new => closed
08-18-17 14:30 ferg Resolution open => fixed
08-18-17 14:30 ferg Fixed in Version  => 4.0.55
11-21-17 09:42 ferg Fixed in Version 4.0.55 => 4.0.54


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker