# Logging with Tensorboard

**URL:** <https://community.wandb.ai/t/logging-with-tensorboard/3265>\
**Category:** W&B Help\
**Created:** [October 16, 2022, 6:59pm UTC](https://community.wandb.ai/t/logging-with-tensorboard/3265 "2022-10-16T18:59:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![susbrock](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@susbrock](https://community.wandb.ai/u/susbrock)\
**Post date:** [October 16, 2022, 6:59pm UTC](https://community.wandb.ai/t/logging-with-tensorboard/3265/1 "2022-10-16T18:59:17Z")

</div>

I am trying to run the demo code from [Demo\_tensorboard.ipynb](https://colab.research.google.com/gist/sayakpaul/5b31ed03725cc6ae2af41848d4acee45/demo_tensorboard.ipynb) so that I can learn more about the use of Tensorboard in combination with W&B. Unfortunately this code throws this warning:

WARNING When using several event log directories, please call `wandb.tensorboard.patch(root_logdir="...")` before `wandb.init`

When I implement the suggested change with:

`wandb.tensorboard.patch(root_logdir="./logs/debug")`

I get the following warning:  
Found log directory outside of given root\_logdir, dropping given root\_logdir for event file in i:\tinyml\tiny\_cnn\wandb\run-20221016\_205607-22b9tlzf\files\train

So my questions is: What is a suitable root\_logdir for Tensorboard?

Thanks for your support.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [October 17, 2022, 1:16pm UTC](https://community.wandb.ai/t/logging-with-tensorboard/3265/2 "2022-10-17T13:16:21Z")

</div>

Hi Susanne,

Thanks for writing in! The `root_logdir`argument is the path to the root of all tfevent files, so you can use the wandb project folder (in this case I think it is `I:/tinyml/tiny_cnn`). Could you try if setting this solves the issue?

Best,  
Luis

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [October 20, 2022, 8:48am UTC](https://community.wandb.ai/t/logging-with-tensorboard/3265/3 "2022-10-20T08:48:45Z")

</div>

Hi Susanne,

We wanted to follow up with you regarding your support request as we have not heard back from you. Please let us know if we can be of further assistance or if your issue has been resolved.

Best,  
Luis

---

<div class="post-metadata">

**Author:** ![susbrock](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@susbrock](https://community.wandb.ai/u/susbrock)\
**Post date:** [October 28, 2022, 7:43pm UTC](https://community.wandb.ai/t/logging-with-tensorboard/3265/4 "2022-10-28T19:43:19Z")

</div>

Setting root\_logdir = os.getcwd() actually solved the issue.

Thanks for the support.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [December 27, 2022, 7:43pm UTC](https://community.wandb.ai/t/logging-with-tensorboard/3265/5 "2022-12-27T19:43:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
