You can easily create a custom layout object by creating a cfc that extends our abstract layout object: logbox.system.logging.Layout
and implementing a format()
method. Below you can see the method signature:
All you need to do is inspect the logging event and create your very own message and then return it back. That's it! You thought there was more?
Every layout has access to the following public variables:
Property
Description
this.logLevels
A reference to the coldbox.system.logging.LogLevels
class.
this.LINE_SEP
A line separator equal to chr(13) & chr(10)
.