Merge pull request #211 from mammonsama666/0422-dev

Feature: Add log gsettings for ukui-search.
This commit is contained in:
iaom 2021-04-23 17:09:04 +08:00 committed by GitHub
commit 7efe4c40be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,39 @@
<schemalist gettext-domain="ukui-log4qt-ukui-search">
<schema id="org.ukui.ukui-log4qt-ukui-search" path="/org/ukui/ukui-log4qt-ukui-search/">
<key type="s" name="log4j-handleqtmessages">
<default>"true"</default>
<summary>hook qt messages</summary>
<description>Control if hook qt messages</description>
</key>
<key type="s" name="log4j-rootlogger">
<default>"WARN,console,daily"</default>
<summary>config rootLogger's level and appenders</summary>
<description>config rootLogger's level and appenders:"level,appender"</description>
</key>
<key type="s" name="log4j-appender-daily-datepattern">
<default>".yyyy-MM-dd"</default>
<summary>daily log file pattern</summary>
<description>set daily log file pattern format:one day</description>
</key>
<key type="s" name="log4j-appender-daily-layout-conversionpattern">
<default>"%d{yyyy-MM-dd HH:mm:ss,zzz}(%-4r)[%t]|%-5p| - %m%n"</default>
<summary>set log message's format</summary>
<description>set log message's format</description>
</key>
<key type="i" name="delaytime">
<default>3600</default>
<summary>set check log files delay time</summary>
<description>set check log files delay time</description>
</key>
<key type="i" name="maxfilecount">
<default>7</default>
<summary>set log files count</summary>
<description>set log files count,unit s</description>
</key>
<key type="i" name="maxfilesize">
<default>512</default>
<summary>set log files total size</summary>
<description>set log files total size, unit M</description>
</key>
</schema>
</schemalist>

View File

@ -59,7 +59,7 @@ data-menu.files += ../data/ukui-search-menu.desktop
data.path = /etc/xdg/autostart data.path = /etc/xdg/autostart
data.files += ../data/ukui-search.desktop data.files += ../data/ukui-search.desktop
schemes.path = /usr/share/glib-2.0/schemas/ schemes.path = /usr/share/glib-2.0/schemas/
schemes.files += ../data/org.ukui.search.data.gschema.xml schemes.files += ../data/org.ukui.search.data.gschema.xml ../data/org.ukui.log4qt.ukui-search.gschema.xml
INSTALLS += data data-menu schemes INSTALLS += data data-menu schemes
RESOURCES += \ RESOURCES += \
@ -91,4 +91,5 @@ DEPENDPATH += $$PWD/../libsearch
# $$OUT_PWD/.qm/zh_CN.qm # $$OUT_PWD/.qm/zh_CN.qm
DISTFILES += \ DISTFILES += \
../data/org.ukui.log4qt.ukui-search.gschema.xml \
../data/org.ukui.search.data.gschema.xml ../data/org.ukui.search.data.gschema.xml