-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display System Logs in Console Output #254
Comments
An update on this feature request (as I attempted to get this working locally): It appears that the I've proven out that we could add a few function toL1(bool _isService, bytes32 _key, bytes32 _value) internal {
console.log("[SYSTEM_LOG]");
console.logBytes32(_key);
console.logBytes32(_value);
Another approach we can take is to avoid using event SystemContractHelperToL1(address _address, bytes32 _key, bytes32 _value);
function toL1(bool _isService, bytes32 _key, bytes32 _value) internal {
emit SystemContractHelperToL1(callAddr, _key, _value); Then we can filter out this special Topic address and format it into a section something like below:
|
These will be added in the logging refactor currently underway. Logs are available on |
🌟 Feature Request
📝 Description
In era we have a concept of system logs. These are used to pass information from L2 to L1 related to L2 state, including but not limited to pubdata commitment, hash of state diffs, log root, etc. The desire is to see these logs displayed in era test node similar to how console logs are displayed.
🤔 Rationale
Ensuring that these logs have the correct information helps us catch bugs early and gives us better insight into era.
🖼️ Mockups/Examples
System logs take on the form of each represented as
bytes32
so displaying these 2 values similar to 2 bytes32 console logs would work.📋 Additional Context
System logs are sent via this function
The text was updated successfully, but these errors were encountered: