BasicFormatter
Class Description
Provides a basic message formatting function for use by Log
.
Log messages are prepended with a timestamp, level, and label:
00:00:00.024 [ INFO] .LogDemoCLI: log test!
00:00:00.025 [DEBUG] .LogDemoCLI: debug statement
See Also
Listing
Methods
format(time:Number, level:LogLevel, label:String, message:String):String | Formats a message prior to printing. |
Details
Methods
format()
public function format(time:Number, level:LogLevel, label:String, message:String):String
Formats a message prior to printing.
See Also
time:Number | The number of milliseconds since app start |
level:LogLevel | A |
label:String | A name for the owner of the message |
message:String | The message to be logged |
returns String | An implementation-dependent formatted string |