# How to use @\_\_FILE\_\_ and @\_\_LINE\_\_ correctly in my own macro?

**URL:** https://discourse.julialang.org/t/how-to-use-file-and-line-correctly-in-my-own-macro/64256
**Category:** General Usage
**Tags:** question
**Created:** [July 8, 2021, 8:25am UTC](https://discourse.julialang.org/t/how-to-use-file-and-line-correctly-in-my-own-macro/64256 "2021-07-08T08:25:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [July 8, 2021, 8:28am UTC](https://discourse.julialang.org/t/how-to-use-file-and-line-correctly-in-my-own-macro/64256/2 "2021-07-08T08:28:51Z")

</div>

See [Module/file/line for log message generated by a macro](https://discourse.julialang.org/t/module-file-line-for-log-message-generated-by-a-macro/63835)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-use-file-and-line-correctly-in-my-own-macro/64256)._
