logTyped method
Log a new message created in the full TalkerLog model or they subclass (you can create it by extends of TalkerLog)
TalkerLog log
- log model
LogLevel logLevel
- to control logging output
class HttpTalkerLog extends TalkerLog {
HttpTalkerLog(String message) : super(message);
AnsiPen get pen => AnsiPen()..xterm(49);
String generateTextMessage() {
return pen.write(message);
}
//You can add here response model of your request
final httpLog = HttpTalkerLog('Http status: 200');
talker.logTyped(httpLog);
Implementation
void logTyped(TalkerLog log) {
_handleLogData(log);
}