In Ethereum Events are clearly defined, each one is a data structure used to signal some action. In Near, env::log
are messages.
Example:
- In Ethereum we use logs for most of the token state changes
- NEP-21 dosn't say anything about logs.
Is there any point of using logs in near, except "debug" / return user information? Should logs be standarized ? Maybe it's better to have this discussion in some other place...?
Following on that: Transaction arguments are serialized and clearly visible. Is there any point to log transaction arguments? For example: in Ethereum token transfer functions, all arguments are recorded additionally in an event. There are few reasons for that:
- With events we should be able to recreate a state of the contract;
- it's more readable while browsing a blockchain. But in case of transfer, I don't think there is any added value, because we don't log anything else than the function arguments.