<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>how to make log and log level default</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121548041" />
  <subtitle>how to make log and log level default</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121548041</id>
  <updated>2026-04-03T22:28:50Z</updated>
  <dc:date>2026-04-03T22:28:50Z</dc:date>
  <entry>
    <title>RE: how to make log and log level default</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121548952" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121548952</id>
    <updated>2022-11-03T17:13:15Z</updated>
    <published>2022-10-31T02:58:13Z</published>
    <summary type="html">&lt;p&gt;hi Russell and Mohammed&lt;/p&gt;
&lt;p&gt;i find by myself, i do believe it's not a good one, but it salved my porblem.&lt;/p&gt;
&lt;p&gt;i modified portal-log4j.xml of portal-impl.jar, restart server.&lt;/p&gt;
&lt;p&gt;it so virulent, violence, it works, for now.&lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2022-10-31T02:58:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: how to make log and log level default</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121548535" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121548535</id>
    <updated>2022-10-28T17:08:11Z</updated>
    <published>2022-10-27T20:39:56Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;You can refer to the blogs below. It may help you.&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://liferay.dev/blogs/-/blogs/log-persister-updated-for-7-3"&gt;https://liferay.dev/blogs/-/blogs/log-persister-updated-for-7-3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://liferay.dev/blogs/-/blogs/liferay-7-dxp-making-logging-changes-persistent"&gt;https://liferay.dev/blogs/-/blogs/liferay-7-dxp-making-logging-changes-persistent&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2022-10-27T20:39:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: how to make log and log level default</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121548303" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121548303</id>
    <updated>2022-10-28T17:07:55Z</updated>
    <published>2022-10-27T16:25:35Z</published>
    <summary type="html">&lt;p&gt;There's nothing out of the box for this, Scarletake, though I can
  tell you it's been discussed internally. I don't know if it helps but
  there's a new way to set log levels that can involve less
  point-and-click: the Gogo shell. See&lt;a
    href="https://github.com/liferay/liferay-portal/blob/8ebca7840bedd3b9fa7b2616c1ebc288b990276b/modules/apps/static/osgi/osgi-log-service-extender/README.markdown#gogo-shell-logging-commands"&gt;
    this commit&lt;/a&gt; for information (an official documentation ticket is
  created but not worked on yet because of prioritization).&lt;/p&gt;
&lt;p&gt;I don't know if you can invoke gogo commands from a Groovy script or
  Java inside an OSGi module, but if so you could create a logger script
  or module to adjust the log levels however you want.&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2022-10-27T16:25:35Z</dc:date>
  </entry>
  <entry>
    <title>how to make log and log level default</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121548040" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121548040</id>
    <updated>2022-10-27T15:59:03Z</updated>
    <published>2022-10-27T08:49:12Z</published>
    <summary type="html">&lt;p&gt;hi &lt;/p&gt;
&lt;p&gt;i can add log and config log level, &lt;a href="https://learn.liferay.com/dxp/latest/en/system-administration/using-the-server-administration-panel/configuring-logging.html"&gt;configuring-logging&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;my problem is, every time i deploy my project or restart server, all
  log i created will be gone and i have to create them one by one again.&lt;/p&gt;
&lt;p&gt;is there any passable to make it default? i mean, just like
  &amp;quot;aQute.bnd.osgi&amp;quot;, always there.&lt;/p&gt;
&lt;p&gt;thanks in advance.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2022-10-27T08:49:12Z</dc:date>
  </entry>
</feed>
