# Solidity:Events

`Events` allow logging to the Ethereum blockchain. Some use cases for events are:

* Listening for events and updating user interface
    
* A cheap form of storage
    

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;

contract Event {
    // Event declaration
    // Up to 3 parameters can be indexed.
    // Indexed parameters helps you filter the logs by the indexed parameter
    event Log(address indexed sender, string message);
    event AnotherLog();

    function test() public {
        emit Log(msg.sender, "Hello World!");
        emit Log(msg.sender, "Hello EVM!");
        emit AnotherLog();
    }
}
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673525030323/cc94bcf0-9560-4d74-ba6c-38768e7a567f.png align="center")
