# Legato logging API issues

**URL:** <https://forum.legato.io/t/legato-logging-api-issues/2697>\
**Category:** Legato Application Framework\
**Created:** [September 29, 2017, 2:59pm UTC](https://forum.legato.io/t/legato-logging-api-issues/2697 "2017-09-29T14:59:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badr](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Badr](https://forum.legato.io/u/Badr)\
**Post date:** [September 29, 2017, 2:59pm UTC](https://forum.legato.io/t/legato-logging-api-issues/2697/1 "2017-09-29T14:59:15Z")

</div>

Hello,

I’m running the helloWorld sample on my target (ar758x) but I connot see any logs. However when I disable sandboxed mode in the .adef file I can see logs. I’m using legato 17.05.  
What can causes this issue ?  
Thank you

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.legato.io/u/lotam)\
**Post date:** [October 3, 2017, 8:06am UTC](https://forum.legato.io/t/legato-logging-api-issues/2697/2 "2017-10-03T08:06:57Z")

</div>

Hi Badr,

How do you print and read the logs?

Are you using Legato logging API and tools?  
If not, please refer to this link: [http://legato.io/legato-docs/latest/howToLogs.html](http://legato.io/legato-docs/latest/howToLogs.html)

Thx  
L

---

<div class="post-metadata">

**Author:** ![Badr](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Badr](https://forum.legato.io/u/Badr)\
**Post date:** [October 3, 2017, 9:14am UTC](https://forum.legato.io/t/legato-logging-api-issues/2697/3 "2017-10-03T09:14:26Z")

</div>

Hi,  
Yes I’m using the Leggato api. I was able to strace my helloWorld and it’s a socket that cannot connect in sandbox mode (permission denied).  
Do you have an idea to how to resolve this?

---

<div class="post-metadata">

**Author:** ![Badr](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Badr](https://forum.legato.io/u/Badr)\
**Post date:** [October 3, 2017, 2:58pm UTC](https://forum.legato.io/t/legato-logging-api-issues/2697/4 "2017-10-03T14:58:24Z")

</div>

Edit : when I sbtrace it I have : app is trying to access ‘/data/le\_fs/’

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.legato.io/u/lotam)\
**Post date:** [October 4, 2017, 7:49am UTC](https://forum.legato.io/t/legato-logging-api-issues/2697/5 "2017-10-04T07:49:44Z")

</div>

Hi Badr,

Just to clarify, you are using the sample app helloWorld without modification and it failed to print “Hello, world.” in logread?

If yes, it is strange because it should works by default.  
Would you please share info below?

> cm info  
> legato version  
> app info helloWorld

By the way, at beginning, you mentioned you are using AR758x, would be easier if you talk to the support team directly for assistance.

Thx

---

<div class="post-metadata">

**Author:** ![Badr](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Badr](https://forum.legato.io/u/Badr)\
**Post date:** [October 4, 2017, 3:52pm UTC](https://forum.legato.io/t/legato-logging-api-issues/2697/6 "2017-10-04T15:52:50Z")

</div>

Hi L,  
No In fact, I’m not using syslogd I’m redirecting logs. So I cannot use logread.  
I have a question, How can I give my sandboxed app root privileges ? I read about CAP\_MAC\_OVERRIDE and smack rules but how can I use this?

Legato version : 17.05.0.rc6

Thnx

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.legato.io/u/lotam)\
**Post date:** [October 6, 2017, 7:58am UTC](https://forum.legato.io/t/legato-logging-api-issues/2697/7 "2017-10-06T07:58:40Z")

</div>

Hi Badr,  
Sorry, I cannot figure out the exact use case and setup why the Legato Logging API (i.e. LE\_INFO) cannot go thru… the default helloWorld sample app give proper result in my case.

Please share the code/logs to understand, or please talk to your support team directly for better follow up.

Thx
