# Term.jl / logging / sending messages to multiple locations

**URL:** <https://discourse.julialang.org/t/term-jl-logging-sending-messages-to-multiple-locations/84841>\
**Category:** General Usage\
**Tags:** logging, termjl\
**Created:** [July 26, 2022, 6:25pm UTC](https://discourse.julialang.org/t/term-jl-logging-sending-messages-to-multiple-locations/84841 "2022-07-26T18:25:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![j\_u](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_u/32/219081_2.png) [@j\_u](https://discourse.julialang.org/u/j_u)\
**Post date:** [July 27, 2022, 11:37pm UTC](https://discourse.julialang.org/t/term-jl-logging-sending-messages-to-multiple-locations/84841/3 "2022-07-27T23:37:00Z")

</div>

Thanks a lot @fredrikekre. Having the opportunity, I am wondering, is there any recommended way to log the output of functions / commands that return “nothing” with the use of `TeeLogger`?. Two examples of such functions / commands: `Pkg.status()` and `Base.Sys.cpu_summary()`. To log output of such commands / functions I came up (based on Logging documentation) with the following idea [[link](https://discourse.julialang.org/t/a-string-pkg-status-nothing-how-to-get-and-save-pkg-status/24571/5)], however, I am not quite sure how to implement it with `TeeLogger`. Is it possible at all? What I am trying to achieve is to reduce `println` commands in my code and exchange them with logging.

---

_[View the full topic](https://discourse.julialang.org/t/term-jl-logging-sending-messages-to-multiple-locations/84841)._
