FSHandler

FSHandler

new FSHandler()

A handler that persists log data onto file system. Default file name pattern is topic.yyyy-mm-dd.log, in which:

  • topic is topic property from invoking log method
  • yyyy-mm-dd is formated string from current date

Default template for formatting log lines is [<%= datetime %>][<%= pid %>] <%= text %>\n

  • datetime is in ISO datetime format
  • pid is the process id
  • text is the output of formatter of log method
Source:

Extends