Logger
State Variables
TAB
string private constant TAB = " ";
currentIndentLevel
Current indent level for all log messages
uint256 private currentIndentLevel;
Functions
withIndent
modifier withIndent();
currentIndent
Returns the current indent string.
Handy if the log message contains arguments other than strings and printLog() is not used.
function currentIndent() internal view returns (string memory);
increaseIndent
Increases the indent level for all log messages.
function increaseIndent() internal;
decreaseIndent
Decreases the indent level for all log messages.
function decreaseIndent() internal;
printLog
Prints the log message with the current indent level.
function printLog(string memory logString) internal view;
printInfo
Prints the informational log message with the current indent level.
function printInfo(string memory logString) internal view;
printLogWithIndent
Prints the log message with the current indent level plus one.
function printLogWithIndent(string memory logString) internal view;
printSkipWithIndent
Prints the "skipping" message with the current indent level plus one.
function printSkipWithIndent(string memory reason) internal view;
printFailWithIndent
Prints the "fail" message with the current indent level plus one.
function printFailWithIndent(string memory logString) internal view;
printSuccessWithIndent
Prints the "success" message with the current indent level plus one.
function printSuccessWithIndent(string memory logString) internal view;
getInfoEmoji
Should return "💬"
function getInfoEmoji() internal pure virtual returns (string memory);
getSkipEmoji
Should return "🟡"
function getSkipEmoji() internal pure virtual returns (string memory);
getFailEmoji
Should return "❌"
function getFailEmoji() internal pure virtual returns (string memory);
getSuccessEmoji
Should return "✅"
function getSuccessEmoji() internal pure virtual returns (string memory);