HttpFormatter class

Formats log entries with HttpLogContext inside.

  • printRpcContent Try to format and print responseData and requestData available in HttpLogContext object. If you are not interested in specific data but want to see registered events - set to false
  • colorize Use special ANSI sequences for colorful output. Warning: not all consoles support this feature. For example, XCode debug console will print this sequences "as is" so the output will be "dirty". Use with care.
  • hideAuthData If true, will parse the headers provided and avoid printing the content of Authorization header.
Implemented types

Constructors

HttpFormatter({LogecomTextPainter textPainter = const UtfPainter(), bool printRpcContent = false, bool hideAuthData = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
hideAuthData bool
final
printRpcContent bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
translate(LogEntry entry, LogTranslatorNextFunction? next) → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited