# Logging messages don't display full array

**URL:** https://discourse.julialang.org/t/logging-messages-dont-display-full-array/27868
**Category:** General Usage
**Created:** [August 22, 2019, 10:14pm UTC](https://discourse.julialang.org/t/logging-messages-dont-display-full-array/27868 "2019-08-22T22:14:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fredcallaway](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredcallaway/32/20304_2.png) [@fredcallaway](https://discourse.julialang.org/u/fredcallaway)
#### Post date: [August 22, 2019, 10:14pm UTC](https://discourse.julialang.org/t/logging-messages-dont-display-full-array/27868/1 "2019-08-22T22:14:20Z")

</div>

I have a log message which displays many variables, and I find that some values (e.g. length 3 arrays) don’t show up at all, e.g.

```julia
┌ Info: Loss
│ total = 0.29817146330446415
│ losses = 3-element Array{Float64,1}: …

```

the second log line is totally useless.

It seems that the array is conditionally displayed depending on how many other variables are being recorded. But I can’t find anything about this in the documentation. What’s going on? Is there a way I can force all the values to be displayed in full?

---

<div class="post-metadata">

### Author: ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)
#### Post date: [August 22, 2019, 11:00pm UTC](https://discourse.julialang.org/t/logging-messages-dont-display-full-array/27868/2 "2019-08-22T23:00:24Z")

</div>

This is NOT the correct answer - it is a very hacky answer that might work for your purposes.

Instead of this:

```julia
@info("Loss", total, losses)

```

Do this:

```julia
@info("Loss", total, repr(losses))

```

---

<div class="post-metadata">

### Author: ![fredcallaway](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredcallaway/32/20304_2.png) [@fredcallaway](https://discourse.julialang.org/u/fredcallaway)
#### Post date: [August 22, 2019, 11:43pm UTC](https://discourse.julialang.org/t/logging-messages-dont-display-full-array/27868/3 "2019-08-22T23:43:16Z")

</div>

Thanks for the stopgap! It would still be good to know what’s actually going on here, and what the “correct” way to deal with this problem is.
