> For the complete documentation index, see [llms.txt](https://whs3-doge5k.gitbook.io/smartcontract-security-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whs3-doge5k.gitbook.io/smartcontract-security-docs/basics/2./undefined-1/event-emit.md).

# event와 emit

* 블록체인 상에서 로그(Log)를 발생시키는 구조
* 프론트엔드와 연동 시 상태 추적 가능

```solidity
event Transferred(address from, address to, uint amount);

function send(address to, uint amount) public {
    emit Transferred(msg.sender, to, amount);
}
```
