<div dir="ltr">Ok.<div>It is clear now.</div><div><br></div><div>Thanks Chunhui.</div><div>Thu Nguyen.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 10, 2020 at 11:27 AM chunhui.jia <<a href="mailto:chunhui.jia@linux.intel.com">chunhui.jia@linux.intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><u></u>
<div style="border-width:0px;font-size:10.5pt;font-family:arial;color:rgb(0,0,0);margin:12px;line-height:1.5">
<div>The data embedded in your entry() is meta-data. Use '-overbose'
option in journalctl command to print. </div>
<div> </div>
<div>journalctl -ef -overbose</div>
<div>>></div>
<div>Tue 2020-11-10 12:28:43.472063 UTC
[s=93d61b6180db407d8f32924833a6954d;i=10c4;b=0ba0603a97814c2bb3d22f4857b5f964;m=13e4a3855c;t=5b3bfd1cbc915;x=bac5bbc519880cdf]<br>
_UID=0<br> _GID=0<br>
_CAP_EFFECTIVE=3fffffffff<br>
_BOOT_ID=0ba0603a97814c2bb3d22f4857b5f964<br>
_MACHINE_ID=b1d2788fe17541c0ba0363cd0f0aa699<br>
_HOSTNAME=intel-obmc<br>
_SYSTEMD_SLICE=system.slice<br>
_TRANSPORT=journal<br> PRIORITY=3<br>
CODE_FILE=/usr/src/debug/intel-ipmi-oem/0.1+gitAUTOINC+04a38ed10d-r0/recipe-sysroot/usr/include/phosphor-logging/log.hpp<br>
CODE_LINE=76<br> CODE_FUNC=helper_log<br>
TRANSACTION_ID=4091710023<br>
SYSLOG_IDENTIFIER=ipmid<br> _PID=245<br>
_COMM=ipmid<br> _EXE=/usr/bin/ipmid<br>
_CMDLINE=ipmid<br>
_SYSTEMD_CGROUP=/system.slice/phosphor-ipmi-host.service<br>
_SYSTEMD_UNIT=phosphor-ipmi-host.service<br>
_SYSTEMD_INVOCATION_ID=62df2ae5590c48a2b79ffe6843c3681c<br>
MESSAGE=Failed to GetAll<br>
INTF=xyz.openbmc_project.Inventory.Decorator.Ipmi<br>
WHAT=sd_bus_call: org.freedesktop.DBus.Error.UnknownInterface: Unknown interface
'xyz.openbmc_project.Inventory.Decorator.Ipmi'.<br>
PATH=/xyz/openbmc_project/inventory/system/powersupply/SOLUM_CO_IS162F22_PSU1<br>
_SOURCE_REALTIME_TIMESTAMP=1605011323472063<br></div>
<div> </div>
<div style="font-size:10pt;font-family:Verdana;color:rgb(192,192,192)" align="left">2020-11-10
<hr id="gmail-m_-7259127040050132605SignNameHR" style="border-width:1px 0px 0px;border-top-style:solid;border-top-color:rgb(192,192,192);height:1px;width:122px" align="left">
<span id="gmail-m_-7259127040050132605_FlashSignName">chunhui.jia</span> </div>
<hr style="border-width:1px 0px 0px;border-top-style:solid;border-top-color:rgb(192,192,192);height:1px">
<blockquote id="gmail-m_-7259127040050132605ntes-flashmail-quote" style="font-size:10pt;font-family:Verdana;padding-left:0px;margin-left:0px">
<div><strong>发件人:</strong>Thu Ba Nguyen <<a href="mailto:tbnguyen1985@gmail.com" target="_blank">tbnguyen1985@gmail.com</a>></div>
<div><strong>发送时间:</strong>2020-11-10 06:35</div>
<div><strong>主题:</strong>Re: phosphor-logging: entry() failed parse
message.</div>
<div><strong>收件人:</strong>"Ramesh I I1"<<a href="mailto:rameshi1@in.ibm.com" target="_blank">rameshi1@in.ibm.com</a>></div>
<div><strong>抄送:</strong>"OpenBMC
Maillist"<<a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a>></div>
<div> </div>
<div>
<div dir="ltr">
<div dir="ltr">Thanks Ramesh,
<div><br></div>
<div>But your commands are applied for some messages.</div>
<div>And don't answer my questions.</div>
<div>"Do I need to add any option when building?" to make phosphor-logging
print message in entry().</div>
<div><br></div>
<div>Regards.</div>
<div>Thu Nguyen.</div>
<div><br></div>
<div>
<div><br></div>
<div><br></div></div></div></div><br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Mon, Nov 9, 2020 at 11:04 AM Ramesh I I1
<<a href="mailto:rameshi1@in.ibm.com" target="_blank">rameshi1@in.ibm.com</a>>
wrote:<br></div>
<blockquote class="gmail_quote" style="padding-left:1ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);margin:0px 0px 0px 0.8ex">
<div style="font-size:10pt;font-family:Arial,Helvetica,sans-serif" dir="ltr">
<div dir="ltr">Hi Thu Nguyen,</div>
<div dir="ltr"> </div>
<div dir="ltr">Below link may help you to get more detailed log
which you are referring.</div>
<div dir="ltr"><a href="https://github.com/openbmc/openbmc/wiki/Debugging-OpenBMC#journalctl" target="_blank">https://github.com/openbmc/openbmc/wiki/Debugging-OpenBMC#journalctl</a></div>
<div dir="ltr"> </div>
<div dir="ltr">For example:</div>
<div dir="ltr">journalctl -o json-pretty MESSAGE="watchdog: Timed out"</div>
<div dir="ltr"> </div>
<div dir="ltr">Regards,</div>
<div dir="ltr">Ramesh</div>
<blockquote style="direction:ltr;padding-left:5px;margin-left:5px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(170,170,170);margin-right:0px" dir="ltr">----- Original message -----<br>From: Thu Ba Nguyen <<a href="mailto:tbnguyen1985@gmail.com" target="_blank">tbnguyen1985@gmail.com</a>><br>Sent by: "openbmc"
<openbmc-bounces+rameshi1=<a href="mailto:in.ibm.com@lists.ozlabs.org" target="_blank">in.ibm.com@lists.ozlabs.org</a>><br>To: OpenBMC Maillist
<<a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a>><br>Cc:<br>Subject:
[EXTERNAL] Re: phosphor-logging: entry() failed parse message.<br>Date:
Sat, Nov 7, 2020 6:11 PM<br> <br>
<div dir="ltr">
<div dir="ltr">The output in BMC console will be:
<div>phosphor-watchdog[534]: watchdog: Timed out</div>
<div> </div>
<div>Regards.</div>
<div>Thu Nguyen</div></div></div>
<div>
<div dir="ltr">On Sat, Nov 7, 2020 at 7:38 PM Thu Ba Nguyen <<a href="mailto:tbnguyen1985@gmail.com" target="_blank">tbnguyen1985@gmail.com</a>> wrote:</div>
<blockquote style="padding-left:1ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);margin:0px 0px 0px 0.8ex">
<div dir="ltr">
<div dir="ltr">Hi,
<div> </div>
<div>In openBmc, We are using phosphor-logging.</div>
<div>When I log:</div>
<div>
<div style="font-size:18px;font-family:Menlo,Monaco,"Courier New",monospace;white-space:pre-wrap;color:rgb(212,212,212);line-height:27px;background-color:rgb(30,30,30)">
<div><span style="color:rgb(220,220,170)">log</span><<span style="color:rgb(78,201,176)">level</span>::<span style="color:rgb(78,201,176)">INFO</span>>(</div>
<div><span style="color:rgb(206,145,120)">"watchdog: Timed
out"</span>,</div>
<div><span style="color:rgb(220,220,170)">entry</span>(<span style="color:rgb(206,145,120)">"ACTION=%s"</span>, <span style="color:rgb(220,220,170)">convertForMessage</span>(<span style="color:rgb(156,220,254)">action</span>).<span style="color:rgb(220,220,170)">c_str</span>()),</div>
<div><span style="color:rgb(220,220,170)">entry</span>(<span style="color:rgb(206,145,120)">"TIMER_USE=%s"</span>, <span style="color:rgb(220,220,170)">convertForMessage</span>(<span style="color:rgb(220,220,170)">expiredTimerUse</span>()).<span style="color:rgb(220,220,170)">c_str</span>()),</div>
<div><span style="color:rgb(220,220,170)">entry</span>(<span style="color:rgb(206,145,120)">"TARGET=%s"</span>, <span style="color:rgb(156,220,254)">target</span>-><span style="color:rgb(156,220,254)">second</span>.<span style="color:rgb(220,220,170)">c_str</span>()));</div></div></div>
<div>The message in entry() is losted.</div>
<div>Do I need to add any option when building?</div>
<div> </div>
<div>Thanks.</div>
<div>Thu Nguyen.</div></div></div></blockquote></div></blockquote>
<div dir="ltr"> </div></div><br></blockquote></div></div></blockquote></div></blockquote></div>