> For the complete documentation index, see [llms.txt](https://calnix.gitbook.io/eth-dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://calnix.gitbook.io/eth-dev/deployment/logging-events-solidity-bloom-filter.md).

# Logging, Events, Solidity, Bloom Filter

![](/files/vp7qie1gRUVKshFDoTCY)

* **Address**: address of contract that emitted the event
* **Topics**: indexed parameters of events
* **Data**: abi-encoded non-indexed parameters of events
  * have to decode using the abi of the contract
  * if contract is verified on etherscan, can view in decoded mode 'dec'

```python
from scripts.helpful_scripts import get_account
from brownie import SimpleStorage, config, network

def deploy():
    account = get_account()
    simple_storage = SimpleStorage.deploy({"from": account}, publish_source=config["networks"][network.show_active()].get("publish_source", False),)

    tx = simple_storage.store(1, {"from": account})
    tx.wait(1)

    print(tx.events)
    print(tx.events[0]["oldNumber"])
    print(tx.events[0]["newNumber"])
    print(tx.events[0]["addedNumber"])
    print(tx.events[0]["sender"])


def main():
    deploy()
```

* <https://www.youtube.com/watch?v=w18c9HLEuBs>
* <https://github.com/PatrickAlphaC/brownie-events-logs/blob/main/scripts/deploy_and_store.py>
