diff --git a/application/assets/deepin-log-viewer/log-viewer/common/export.svg b/application/assets/deepin-log-viewer/log-viewer/common/export.svg old mode 100644 new mode 100755 diff --git a/application/assets/deepin-log-viewer/log-viewer/common/refresh.svg b/application/assets/deepin-log-viewer/log-viewer/common/refresh.svg old mode 100644 new mode 100755 diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/applog.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/applog.png deleted file mode 100755 index e316a375..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/applog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/auto_refresh.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/auto_refresh.png new file mode 100644 index 00000000..b83e0ca1 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/auto_refresh.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/bootlog.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/bootlog.png deleted file mode 100755 index 40d44bfd..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/bootlog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/delete_log.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/delete_log.png new file mode 100644 index 00000000..b9befa41 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/delete_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/displayinfm.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/displayinfm.png deleted file mode 100755 index eb795cc4..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/displayinfm.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/dpkglog.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/dpkglog.png deleted file mode 100755 index ab34c7c6..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/dpkglog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/export_log.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/export_log.png new file mode 100644 index 00000000..594d6967 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/export_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/filter_log.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/filter_log.png new file mode 100644 index 00000000..67983947 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/filter_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/kernlog.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/kernlog.png deleted file mode 100755 index 066cffa9..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/kernlog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/otherslog.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/otherslog.png deleted file mode 100644 index b166501b..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/otherslog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/powerevent.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/powerevent.png deleted file mode 100755 index e3562ed6..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/powerevent.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/refresh_log.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/refresh_log.png new file mode 100644 index 00000000..ca0ef89a Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/refresh_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/rsyslog.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/rsyslog.png deleted file mode 100755 index 377efe92..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/rsyslog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/search_log.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/search_log.png new file mode 100644 index 00000000..b3d89edc Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/search_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/show_in_fileManager.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/show_in_fileManager.png new file mode 100644 index 00000000..6564441c Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/show_in_fileManager.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/syslog.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/syslog.png new file mode 100644 index 00000000..a6d6959c Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/syslog.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/xorglog.png b/application/assets/deepin-log-viewer/log-viewer/en_US/fig/xorglog.png deleted file mode 100755 index 4b476ab2..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/en_US/fig/xorglog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/en_US/log-viewer.md b/application/assets/deepin-log-viewer/log-viewer/en_US/log-viewer.md old mode 100644 new mode 100755 index 436a8d43..d960f5cf --- a/application/assets/deepin-log-viewer/log-viewer/en_US/log-viewer.md +++ b/application/assets/deepin-log-viewer/log-viewer/en_US/log-viewer.md @@ -1,257 +1,162 @@ # Log Viewer|deepin-log-viewer| -## Overview - -Log viewer is a tool that collects logs generated when an application is running, for example, logs generated when operating system and applications start up and run. You can do trouble-shooting and solve problems quickly by analyzing logs. - - - -## Guide - -You can run, close or create a shortcut for Log Viewer. - -### Run Log Viewer - -1. Click ![deepin_launcher](../common/deepin_launcher.svg)on the Dock to enter the interface of launcher. -2. Locate ![deepin_log_viewer](../common/deepin_log_viewer.svg) by scrolling the mouse wheel or searching "Log Viewer" in the Launcher interface and click it to run. -3. Right-click![deepin_log_viewer](../common/deepin_log_viewer.svg) to: - - Select **Send to desktop** to create a shortcut on the desktop. - - - Select **Send to dock** to fix it onto the dock. - - - Select **Add to startup** to run it automatically when the computer is turned on. - -### Exit Log Viewer - -- On the main interface, click ![close_icon](../common/close_icon.svg) to exit. -- Right-click ![deepin_log_viewer](../common/deepin_log_viewer.svg) on the Dock, select **Close all** to exit. -- On interface of Log Viewer, click ![icon_menu](../common/icon_menu.svg) and select **Exit** to exit. - -## Operations - -### Search - -1. Click![search](../common/search.svg)in the search box. -2. Input keywords. And the results are displayed after input. -3. Click ![close_icon](../common/close_icon.svg) to clear up current searching. - - - -### Filter - - Filtering parameters include **period**, **level**, **status**, **application list** and **event type**. - - - - - - - - - - - - - - - - - - - - - -
Filtering TypeDescription
Filtering by periodto filter in the order of log generating date -
    -
  • Options include: "All", "Today", "3 days", "1 week", "1 month", and "3 months". Default option is "All".
  • -
  • Applicable for: "period" is not displayed only for boot logs, other kinds of logs support filtering by period.
  • -
-
Filtering by levelto filter by seriousness levels of events -
    -
  • Options include: "All", "Emergency", "Alert", "Critical", "Error", "Warning", "Notice", "Info"and "Debug". Default option is "Info".
  • -
  • Applicable for: system logs and application logs
  • -
-
Filtering by status -
    -
  • Options include: "All", "OK", and "Failed". Default option is "All".
  • -
  • Applicable for: boot logs only
  • -
-
Filtering by application list: to filter log files of applications, default option is the first one. - Applicable for: application logs only.
Filtering by event type -
    -
  • Options include: "All", "Login", "Reboot", and "Shutdown", the default option is "all".
  • -
  • Applicable for: boot-shutdown events only.
  • -
-
+## Overview -### View Logs - -#### System Log - -1. On the main interface, click **System Log**. -2. You can see a list of system logs which are detailed by "Level", "Process", "Date and Time", and "Info". -3. Click a log, you can see its particular info below the list, including process, time, user, PID, level and info. - -![0|rsyslog](fig/rsyslog.png) - -#### Kernel Log - -1. On the main interface, click **Kernel Log**. -2. Input login password in the pop-up authentication window. -3. You can view the status and information of kernel logs. -4. Click a log, you can see its particular info below the list, including process, time, user and info. - - - -![0|kernlog](fig/kernlog.png) +The log collection tool is a small utility responsible for collecting logs generated during program execution, such as relevant information about the operating system and applications during startup, operation, etc. By analyzing detailed log information, you can quickly find the cause of failures and resolve issues. -#### Boot Log +## Getting Started -1. On the main interface, click **Boot Log**. -2. Input password in the popped up authentication window. -3. You can view the status and information of boot logs. -4. Click a log, you can see its particular info below the list, including user, status and info. +You can run, close the log collection tool, or create shortcuts in the following ways. +### Running the Log Collection Tool +1. Click the launcher icon on the taskbar ![deepin_launcher](../common/deepin_launcher.svg) to enter the launcher interface. -![0|bootlog](fig/bootlog.png) +2. Scroll up or down with the mouse wheel or search to find the log collection tool icon ![deepin_log_viewer](../common/deepin_log_viewer.svg), and click to run it. -#### dpkg Log +3. Right-click on the icon, and you can: -1. On the main interface, click **dpkg Log**. -2. You can view time and information of dpkg logs. -3. Click a log, you can see its particular info below the list, including time, user, action and info. + - Click **Send to Desktop** to create a shortcut on the desktop. + - Click **Send to Taskbar** to pin the application to the taskbar. + - Click **Start Automatically** to add the application to the startup items, so it runs automatically when the computer starts. -![0|dpkglog](fig/dpkglog.png) +### Closing the Log Collection Tool -#### Xorg Log +- In the log collection tool interface, click ![close_icon](../common/close_icon.svg) to exit the log collection tool. +- Right-click on the taskbar ![deepin_log_viewer](../common/deepin_log_viewer.svg), and select **Close All** to exit the log collection tool. +- In the log collection tool interface, click ![icon_menu](../common/icon_menu.svg) and select **Exit** to close the tool. -1. On the main interface, click **Xorg Log**. -2. You can view time and information of Xorg logs. -3. Click a log, you can see its particular info below the list, including user, time and info. +## Operations Introduction -![0|xorglog](fig/xorglog.png) +> ![attention](../common/attention.svg) The log collection tool supports the display of various log types. Due to differences in system versions or architectures, the available log types may vary. Please refer to the final page for the specific features. +> +> ![attention](../common/attention.svg) Depending on the log type, the available filtering options, whether the log can be displayed in the file manager, and whether log clearing is supported may differ. Please refer to the final page for specific functionalities. +> +> The following section will introduce the operation of the log collection tool with **system logs** and **kernel logs** as examples. -#### Application Log +### Search Logs -1. On the main interface, click **Application Log**. -2. You can view level, time, source and information of application logs. -3. Click a log, you can see its particular info below the list, including source, user, time, level and info. +1. In the log collection tool search box, click ![search](../common/search.svg). +2. Enter keywords to display search results in real-time. +3. Click ![close_icon](../common/close_icon.svg) to clear the search content. -![0|applog](fig/applog.png) +![search_log](./fig/search_log.png) +### Filter Logs -#### Boot-Shutdown Event +1. In the log collection tool’s top filter bar, select the option you want to filter by. +2. After clicking or selecting a filter, the log collection tool will immediately display the filtered results. -1. On the main interface, click **Boot-Shutdown Event**. -2. You can view event type, username, time and information of boot-shutdown events. -3. Click a log, you can see its particular info below the list, including user, time, event type, username and info. -![0|powerevent](fig/powerevent.png) +![filter_log](./fig/filter_log.png) -#### Other Logs - -1. On the main interface, click **Other Logs**. -2. Other logs display the file name and modification date of the log file in a file list format. Display similar log files in folder format. -3. After selecting a file, you can view its detailed content. Drag and drop the file list and detailed content boundary to synchronize and adjust the size of the two regions. +### View Logs -![otherslog](fig/otherslog.png) +1. In the log collection tool interface, click on the log type menu you wish to view, and the right-side list will display all logs of that type. +2. Left-click on a log, and you can view the detailed information of the log in the lower section of the tool. +![syslog](./fig/syslog.png) -### Custom logs +### Custom Logs -The custom log function is to add log files to the log collection tool for viewing and exporting. Custom logging compatible with Gsettings and Dconfig configurations. +The custom log feature allows you to add log files to the log collection tool for viewing and exporting. Custom logs are compatible with both Gsettings and Dconfig configurations. -**Gsettings configuration** +**Gsettings Configuration** -1. Execute the Gsettings configuration setting command on the terminal, fill in the log file path in "[]", for example: ['a. log ',' b. log ',' c. log ']. +1. Execute the Gsettings configuration command in the terminal. Replace the “[]” with the log file paths, for example: ['a.log', 'b.log', 'c.log']. ```shell gsettings set com.deepin.log.viewer customlogfiles [] ``` -2. On the main interface, click **Custom Log** to discover the existing configuration. +1. In the log collection tool interface, click **Custom Logs**, and you will see the existing configuration. -**Dconfig configuration** +**Dconfig Configuration** -1. Execute the Dconfig configuration setting command on the terminal, fill in the log file path in "[]", for example: ["a.log", "b. log", "c.log"] +1. Execute the Dconfig configuration command in the terminal. Replace the “[]” with the log file paths, for example: ["a.log", "b.log", "c.log"]. ```shell dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLogFiles -v '["a.log","b.log","c.log"]' ``` -2. On the main interface, click **Custom Log** to discover the existing configuration. - +1. In the log collection tool interface, click **Custom Logs**, and you will see the existing configuration. ### Export Logs -You can export logs to local computer so as to help you analyze, locate and solve problems. +The export log function allows you to export the log query results to the local system, helping you analyze, locate, and resolve issues. + +1. Select a log type and click the **Export** button in the upper-right corner of the interface. +2. If a password authentication window pops up, enter your user login password and click **OK**. +3. In the pop-up window, select the storage location and click **Save**. -1. Select a log type and click **Export** in the upper right corner. -2. Input login password in the pop-up authentication window (if any) and click **Confirm**. -3. Select the storing path in the pop-up window, and click **Save**. +> ![icon](../common/notes.svg) Note: You can also click the **Export All** button in the title bar ![icon](../common/export.svg) to export all logs. ->![icon](../common/notes.svg) Notes: you can also click the "Export All" button ![icon](../common/export.svg) on the title bar to export system logs, kernel logs, boot logs, dpkg logs, Xorg logs, application logs and logs of boot-shutdown events as well. +![export_log](./fig/export_log.png) -### Refresh +### Refresh Logs -You can refresh the logs manually and automatically. For auto refresh, you can set the frequency. +Logs can be refreshed manually or automatically. The frequency of automatic refresh can be customized. -#### Manual Refresh +#### Manual Log Refresh -Click the "Refresh Now" button ![icon](../common/refresh.svg) on the title bar, or right-click on a log type and select **Refresh** to reload the log list. +Click the **Refresh** button in the title bar ![icon](../common/refresh.svg); or right-click on a log type and select **Refresh** to refresh the logs. -#### Auto Refresh +![refresh_log](./fig/refresh_log.png) -1. Click ![icon_menu](../common/icon_menu.svg) > **Refresh interval** in the main interface. -2. Select a proper refresh interval from **10 sec**, **1 min**, and **5 min**. Or select **No refresh** to stop auto refreshing. +#### Automatic Log Refresh +1. In the log collection tool interface, click ![icon_menu](../common/icon_menu.svg) > **Refresh Frequency**. +2. Select the automatic refresh frequency: **Every 10 seconds**, **Every 1 minute**, or **Every 5 minutes** to refresh the logs. Select **Do not refresh** to stop automatic log refreshing. +![auto_refresh](./fig/auto_refresh.png) ### Display in File Manager -**Display in file manager** is only applicable for kernel log, boot log, dpkg log, Xorg log and application log. +With the **Display in File Manager** feature, you can view the raw log files of certain logs. -1. On the interface of Log Viewer, select a log type in the left panel and right-click. -2. Select **Display in file manager**, the folder path of the current log will be opened. +1. In the log collection tool’s left-side navigation bar, right-click on a log type. +2. Select **Display in File Manager** to navigate to the current log’s storage location. -![display](fig/displayinfm.png) +![show_in_fileManager](./fig/show_in_fileManager.png) ### Clear Log -**Clear log** is only applicable for kernel log, boot log, dpkg log, Xorg log and application log. - -1. On the interface of File Manager, select a log type in the left panel and right-click. -2. Select **Clear log**, click **Confirm** button in the pop-up window to clear current logs. -3. If authentication window pops up, please input password to finish the operation. +1. In the log collection tool’s left-side navigation bar, right-click on a log type. +2. Select **Clear Log**. +3. A prompt will appear asking you to confirm clearing the logs. Click **OK**. +4. If a password authentication window pops up, enter your user login password and click **OK**. +![delete_log](./fig/delete_log.png) ## Main Menu -In the main menu, you can [set refresh intervals](#Auto Refresh), switch themes, view help manual, and so on. - -### Theme +In the main menu, you can [set the refresh frequency](https://chatgpt.com/c/677b9ca1-43e8-8009-91e4-3cafdf878f9c#auto-refresh-logs), switch window themes, view the help manual, and more. -The window theme includes Light Theme, Dark Theme and System Theme. +### Themes -1. Click ![icon_menu](../common/icon_menu.svg)on the interface. -2. Click **Theme** to select one. +The window themes include Light Theme, Dark Theme, and System Theme. +1. In the log collection tool interface, click ![icon_menu](../common/icon_menu.svg). +2. Select **Theme** and choose a theme color. ### Help -Click Help to get the manual, which will help you further know and use Log Viewer. - -1. Click ![icon_menu](../common/icon_menu.svg)on the interface. -2. Click **Help** to view the manual. +To view the help manual and further understand how to use the log collection tool: +1. In the log collection tool interface, click ![icon_menu](../common/icon_menu.svg). +2. Select **Help**. +3. View the log collection tool's help manual. ### About -1. Click ![icon_menu](../common/icon_menu.svg)on the interface. -2. Click **About** to view version information and introduction about Log Viewer. +1. In the log collection tool interface, click ![icon_menu](../common/icon_menu.svg). +2. Select **About**. +3. View the version and introduction of the log collection tool. ### Exit -1. Click ![icon_menu](../common/icon_menu.svg)on the interface. -2. Click **Exit**. +1. In the log collection tool interface, click ![icon_menu](../common/icon_menu.svg). +2. Select **Exit**. + +------ +Let me know if you'd like any additional modifications! diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/applog.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/applog.png deleted file mode 100755 index e2142409..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/applog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/auto_refresh.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/auto_refresh.png new file mode 100644 index 00000000..fb6e9698 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/auto_refresh.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/bootlog.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/bootlog.png deleted file mode 100755 index 0e15d4f3..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/bootlog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/delete_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/delete_log.png new file mode 100644 index 00000000..8611eefa Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/delete_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/dpkglog.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/dpkglog.png deleted file mode 100755 index 7c4dda1a..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/dpkglog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/export_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/export_log.png new file mode 100644 index 00000000..6daa9f51 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/export_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/filter_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/filter_log.png new file mode 100644 index 00000000..e9aebd83 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/filter_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/kernlog.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/kernlog.png deleted file mode 100755 index 1a1e8139..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/kernlog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/otherslog.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/otherslog.png deleted file mode 100644 index b166501b..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/otherslog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/power_event.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/power_event.png deleted file mode 100755 index f0bcc79b..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/power_event.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/refresh_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/refresh_log.png new file mode 100644 index 00000000..bff1eab1 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/refresh_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/rightclick.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/rightclick.png deleted file mode 100755 index c36f84ce..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/rightclick.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/search_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/search_log.png new file mode 100644 index 00000000..97005c06 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/search_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/show_in_fileManager.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/show_in_fileManager.png new file mode 100644 index 00000000..dc5a91f0 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/show_in_fileManager.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/syslog.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/syslog.png old mode 100755 new mode 100644 index 5c0d8929..fd583107 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/syslog.png and b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/syslog.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/xorglog.png b/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/xorglog.png deleted file mode 100755 index 8e010aac..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_CN/fig/xorglog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_CN/log-viewer.md b/application/assets/deepin-log-viewer/log-viewer/zh_CN/log-viewer.md index 76bbe0b6..f1004dcc 100755 --- a/application/assets/deepin-log-viewer/log-viewer/zh_CN/log-viewer.md +++ b/application/assets/deepin-log-viewer/log-viewer/zh_CN/log-viewer.md @@ -4,11 +4,9 @@ 日志收集工具是负责收集程序运行时所产生日志的小工具,如操作系统和应用程序在启动、运行等过程中的相关信息。您可以通过分析详细日志信息,快速地找到故障原因并解决问题。 - - ## 使用入门 -您可以通过以下方式运行或关闭日志收集工具,或者创建快捷方式。 +您可以通过以下方式运行、关闭日志收集工具,或创建快捷方式。 ### 运行日志收集工具 @@ -27,134 +25,37 @@ ## 操作介绍 +> ![attention](../common/attention.svg)日志收集工具支持多种日志类型的展示。由于系统版本或架构的不同,可查看的日志类型可能有所差异,具体功能请以最终页面显示内容为准。 +> +> ![attention](../common/attention.svg) 由于日志类型的不同,提供的筛选项、是否能在文件管理器中显示及是否支持清除日志的功能也有所区别,具体功能请参照最终页面的显示内容。 +> +> 下文将以系统日志和内核日志 **为例** ,介绍日志收集工具的操作方式。 + ### 搜索日志 1. 在日志收集工具搜索框中,单击 ![search](../common/search.svg)。 2. 输入关键字,实时显示搜索结果。 3. 单击 ![close_icon](../common/close_icon.svg) ,则清空搜索内容。 - +![search_log](fig/search_log.png) ### 筛选日志 -您可以通过 **周期**、**级别**、**状态**、**应用列表** 或 **事件类型** 来筛选日志。 - - - - - - - - - - - - - - - - - - - - -
类型说明
按周期筛选按日志生成的时间顺序进行筛选。 -
    -
  • 选项包括:全部、今天、近三天、近一周、近一个月、近三个月,默认选项为全部。
  • -
  • 适用类型:除了启动日志没有显示时间外,其他类型的日志都支持按周期筛选。
  • -
-
按级别筛选按照事件的级别高低进行筛选。 -
    -
  • 选项包括:全部、紧急、严重警告、严重、错误、警告、注意、信息、调试,默认选项为信息。
  • -
  • 适用类型:系统日志、应用日志。
  • -
-
按状态筛选 -
    -
  • 选项包括:全部、OK、Failed,默认选项为全部。
  • -
  • 适用类型:仅适用于启动日志。
  • -
-
按应用列表筛选 - 适用类型:仅适用于应用日志,对应用程序的log文件进行筛选,默认选项为第一个应用程序。
按事件类型筛选 -
    -
  • 选项包括:全部、登录、开机、关机,默认选项为全部。
  • -
  • 适用类型:仅适用于开关机事件。
  • -
-
+1. 在日志收集工具顶部筛选栏中,选择需要筛选的选项。 +2. 点击或选择筛选项后,日志收集工具将立即展示筛选结果。 +![filter_log](fig/filter_log.png) ### 查看日志 -#### 查看系统日志 - -1. 在日志收集工具界面,单击 **系统日志**。 -2. 查看系统日志的级别、进程、时间和信息。 -3. 选中某条日志后,可查看该日志的详细信息,包括进程、时间、主机名、进程号、级别和详细信息。 +1. 在日志收集工具界面,单击 需要查看的日志类型菜单,工具右侧列表会展示当前日志类型下所有的日志。 +3. 鼠标左键单击某条日志后,可在工具下方查看该日志的详细信息。 ![rsylog](fig/syslog.png) -#### 查看内核日志 - -1. 在日志收集工具界面,单击 **内核日志**。 -2. 弹出“密码认证”窗口,输入用户登录密码后单击 **确定**。 -3. 查看内核日志的时间、主机名、进程和信息。 -4. 选中某条日志后,可查看该日志的详细信息,包括进程、时间、主机名和详细信息。 - -![kernlog](fig/kernlog.png) - -#### 查看启动日志 - -1. 在日志收集工具界面,单击 **启动日志**。 -2. 弹出“密码认证”窗口,输入用户登录密码后单击 **确定**。 -3. 查看启动日志的状态和信息。 -4. 选中某条日志后,可查看该日志的详细信息,包括主机名、状态和详细信息。 - -![bootlog](fig/bootlog.png) - -#### 查看dpkg日志 - -1. 在日志收集工具界面,单击 **dpkg日志**。 -2. 查看dpkg日志的时间和信息。 -3. 选中某条日志后,可查看该日志的详细信息,包括时间、主机名、动作和详细信息。 - -![dpkglog](fig/dpkglog.png) - -#### 查看Xorg日志 - -1. 在日志收集工具界面,单击 **Xorg日志**。 -2. 查看Xorg日志的时间和信息。 -3. 选中某条日志后,可查看该日志的详细信息,包括时间、主机名和详细信息。 - -![xorglog](fig/xorglog.png) - -#### 查看应用日志 - -1. 在日志收集工具界面,单击 **应用日志**。 -2. 查看应用日志的级别、时间、来源和信息。 -3. 选中某条日志后,可查看该日志的详细信息,包括来源、时间 、主机名、级别和详细信息。 - -![applog](fig/applog.png) - -#### 查看开关机事件 - -1. 在日志收集工具界面,单击 **开关机事件**。 -2. 查看开关机事件的事件类型、用户名、时间和信息。 -3. 选中某条日志后,可查看该日志的详细信息,包括时间、主机名、事件类型、用户名和详细信息。 - -![power_event](fig/power_event.png) - -#### 查看其它日志 - -1. 在日志收集工具界面,单击 **其它日志**。 -2. 其它日志以文件列表方式展示日志文件的文件名称、修改日期。同类日志文件以文件夹方式展示。 -3. 选中某个文件后,可查看该文件的详细内容。拖拽文件列表和详细内容分界线,可以同步调整两区域大小。 - -![otherslog](fig/otherslog.png) - - - ### 自定义日志 -自定义日志功能是将日志文件添加至日志收集工具进行查看、导出。自定义日志兼容Gsettings配置和Dconfig配置。 +自定义日志功能允许您将日志文件添加到日志收集工具中进行查看和导出。自定义日志兼容Gsettings配置和Dconfig配置。 **Gsettings配置** @@ -185,42 +86,47 @@ dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLog 2. 如果弹出密码认证窗口,输入用户登录密码后单击 **确定**。 3. 在弹出的窗口中,选择存储位置,单击 **保存**。 ->![icon](../common/notes.svg) 说明:您也可以单击标题栏上的全部导出按钮 ![icon](../common/export.svg),将系统日志、内核日志、启动日志、dpkg日志、Xorg日志、应用日志和开关机事件的日志全部导出。 +>![icon](../common/notes.svg) 说明:您也可以单击标题栏上的全部导出按钮 ![icon](../common/export.svg),将全量的日志导出。 + +![export_log](fig/export_log.png) ### 刷新日志 -刷新日志分为手动刷新和自动刷新,如果是自动刷新日志,还可以设置自动刷新的频率。 +刷新日志分为手动刷新和自动刷新,自动刷新日志的频率可以自定义。 #### 手动刷新日志 单击标题栏上的立即刷新按钮 ![icon](../common/refresh.svg);或右键单击某一日志类型,选择 **刷新**,刷新日志。 +![refresh_log](fig/refresh_log.png) + #### 自动刷新日志 1. 在日志收集工具界面,单击 ![icon_menu](../common/icon_menu.svg) > **刷新频率**。 -2. 选择自动刷新的频率:**每10秒**、**每1分钟** 或 **每5分钟**, 刷新日志。 - 如果选择 **不刷新**,表示停止自动刷新日志。 +2. 选择自动刷新的频率:**每10秒**、**每1分钟** 或 **每5分钟**, 刷新日志。选择 **不刷新** 即停止自动刷新日志。” + +![auto_refresh](fig/auto_refresh.png) ### 在文件管理器中显示 -在日志收集工具中仅内核日志、启动日志、dpkg日志、Xorg日志和应用日志支持 **在文件管理器中显示** 的功能。 +通过 **在文件管理器中显示** 的功能,您可以查看部分日志的原始日志文件。 1. 在日志收集工具左侧导航栏中,右键单击某一日志类型。 2. 选择 **在文件管理器中显示**,定位到当前日志的存储位置。 -![right](fig/rightclick.png) - +![show_in_fileManager](fig/show_in_fileManager.png) ### 清除日志 -在日志收集工具中仅内核日志、启动日志、dpkg日志、Xorg日志和应用日志支持 **清除日志** 的功能。 1. 在日志收集工具左侧导航栏中,右键单击某一日志类型。 2. 选择 **清除日志**。 3. 弹出“确定清除日志”提示框,单击 **确定**。 4. 如果弹出密码认证窗口,输入用户登录密码后单击 **确定**。 +![delete_log](fig/delete_log.png) + ## 主菜单 @@ -233,7 +139,6 @@ dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLog 1. 在日志收集工具界面,单击 ![icon_menu](../common/icon_menu.svg)。 2. 选择 **主题**,选择一个主题颜色。 - ### 帮助 查看帮助手册,进一步了解和使用日志收集工具。 @@ -242,7 +147,6 @@ dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLog 2. 选择 **帮助**。 3. 查看日志收集工具的帮助手册。 - ### 关于 1. 在日志收集工具界面,单击 ![icon_menu](../common/icon_menu.svg)。 diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/applog.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/applog.png deleted file mode 100755 index 49346036..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/applog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/auto_refresh.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/auto_refresh.png new file mode 100644 index 00000000..d62bcccc Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/auto_refresh.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/bootlog.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/bootlog.png deleted file mode 100755 index 497e3bd9..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/bootlog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/delete_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/delete_log.png new file mode 100644 index 00000000..2cd9b96c Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/delete_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/dpkglog.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/dpkglog.png deleted file mode 100755 index 057d55d5..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/dpkglog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/export_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/export_log.png new file mode 100644 index 00000000..6b0e9474 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/export_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/filter_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/filter_log.png new file mode 100644 index 00000000..13a05964 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/filter_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/kernlog.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/kernlog.png deleted file mode 100755 index 72c51689..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/kernlog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/otherslog.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/otherslog.png deleted file mode 100644 index c9650236..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/otherslog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/refresh_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/refresh_log.png new file mode 100644 index 00000000..bd29369a Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/refresh_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/search_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/search_log.png new file mode 100644 index 00000000..ccddf7ec Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/search_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/show_in_fileManager.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/show_in_fileManager.png new file mode 100644 index 00000000..4e3ed704 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/show_in_fileManager.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/syslog.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/syslog.png old mode 100755 new mode 100644 index eb33a8ba..255c6639 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/syslog.png and b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/syslog.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/xorglog.png b/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/xorglog.png deleted file mode 100755 index 39d9f8ea..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_HK/fig/xorglog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_HK/log-viewer.md b/application/assets/deepin-log-viewer/log-viewer/zh_HK/log-viewer.md index 84be222d..1e8e6e75 100755 --- a/application/assets/deepin-log-viewer/log-viewer/zh_HK/log-viewer.md +++ b/application/assets/deepin-log-viewer/log-viewer/zh_HK/log-viewer.md @@ -2,13 +2,11 @@ ## 概述 -日誌收集工具是負責收集程序運行時所產生日誌的小工具,如操作系統和應用程序在啟動、運行等過程中的相關信息。您可以通過分析詳細日誌信息,快速地找到故障原因並解決問題。 - - +日誌收集工具是負責收集程序運行時所產生日誌的小工具,如操作系統和應用程式在啟動、運行等過程中的相關資訊。您可以通過分析詳細日誌資訊,快速地找到故障原因並解決問題。 ## 使用入門 -您可以通過以下方式運行或關閉日誌收集工具,或者創建快捷方式。 +您可以通過以下方式運行、關閉日誌收集工具,或創建快捷方式。 ### 運行日誌收集工具 @@ -16,8 +14,8 @@ 2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到日誌收集工具圖標 ![deepin_log_viewer](../common/deepin_log_viewer.svg),單擊運行。 3. 右鍵單擊 ![deepin_log_viewer](../common/deepin_log_viewer.svg),您可以: - 單擊 **發送到桌面**,在桌面創建快捷方式。 - - 單擊 **發送到任務欄**,將應用程序固定到任務欄。 - - 單擊 **開機自動啟動**,將應用程序添加到開機啟動項,在電腦開機時自動運行該應用程序。 + - 單擊 **發送到任務欄**,將應用程式固定到任務欄。 + - 單擊 **開機自動啟動**,將應用程式添加到開機啟動項,在電腦開機時自動運行該應用程式。 ### 關閉日誌收集工具 @@ -27,134 +25,37 @@ ## 操作介紹 +> ![attention](../common/attention.svg)日誌收集工具支持多種日誌類型的展示。由於系統版本或架構的不同,可查看的日誌類型可能有所差異,具體功能請以最終頁面顯示內容為準。 +> +> ![attention](../common/attention.svg) 由於日誌類型的不同,提供的篩選項、是否能在文件管理器中顯示及是否支持清除日誌的功能也有所區別,具體功能請參照最終頁面的顯示內容。 +> +> 下文將以系統日誌和內核日誌 **為例** ,介紹日誌收集工具的操作方式。 + ### 搜索日誌 1. 在日誌收集工具搜索框中,單擊 ![search](../common/search.svg)。 2. 輸入關鍵字,實時顯示搜索結果。 3. 單擊 ![close_icon](../common/close_icon.svg) ,則清空搜索內容。 - +![search_log](fig/search_log.png) ### 篩選日誌 -您可以通過 **週期**、**級別**、**狀態**、**應用列表** 或 **事件類型** 來篩選日誌。 - - - - - - - - - - - - - - - - - - - - -
類型説明
按週期篩選按日誌生成的時間順序進行篩選。 -
    -
  • 選項包括:全部、今天、近三天、近一週、近一個月、近三個月,默認選項為全部。
  • -
  • 適用類型:除了啟動日誌沒有顯示時間外,其他類型的日誌都支持按週期篩選。
  • -
-
按級別篩選按照事件的級別高低進行篩選。 -
    -
  • 選項包括:全部、緊急、嚴重警告、嚴重、錯誤、警告、注意、信息、調試,默認選項為信息。
  • -
  • 適用類型:系統日誌、應用日誌。
  • -
-
按狀態篩選 -
    -
  • 選項包括:全部、OK、Failed,默認選項為全部。
  • -
  • 適用類型:僅適用於啟動日誌。
  • -
-
按應用列表篩選 - 適用類型:僅適用於應用日誌,對應用程序的log文件進行篩選,默認選項為第一個應用程序。
按事件類型篩選 -
    -
  • 選項包括:全部、登錄、開機、關機,默認選項為全部。
  • -
  • 適用類型:僅適用於開關機事件。
  • -
-
+1. 在日誌收集工具頂部篩選欄中,選擇需要篩選的選項。 +2. 點擊或選擇篩選項後,日誌收集工具將立即展示篩選結果。 +![filter_log](fig/filter_log.png) ### 查看日誌 -#### 查看系統日誌 - -1. 在日誌收集工具界面,單擊 **系統日誌**。 -2. 查看系統日誌的級別、進程、時間和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括進程、時間、主機名、進程號、級別和詳細信息。 +1. 在日誌收集工具界面,單擊 需要查看的日誌類型菜單,工具右側列表會展示當前日誌類型下所有的日誌。 +2. 鼠標左鍵單擊某條日誌後,可在工具下方查看該日誌的詳細資訊。 ![rsylog](fig/syslog.png) -#### 查看內核日誌 - -1. 在日誌收集工具界面,單擊 **內核日誌**。 -2. 彈出“密碼認證”窗口,輸入用户登錄密碼後單擊 **確定**。 -3. 查看內核日誌的時間、主機名、進程和信息。 -4. 選中某條日誌後,可查看該日誌的詳細信息,包括進程、時間、主機名和詳細信息。 - -![kernlog](fig/kernlog.png) - -#### 查看啟動日誌 - -1. 在日誌收集工具界面,單擊 **啟動日誌**。 -2. 彈出“密碼認證”窗口,輸入用户登錄密碼後單擊 **確定**。 -3. 查看啟動日誌的狀態和信息。 -4. 選中某條日誌後,可查看該日誌的詳細信息,包括主機名、狀態和詳細信息。 - -![bootlog](fig/bootlog.png) - -#### 查看dpkg日誌 - -1. 在日誌收集工具界面,單擊 **dpkg日誌**。 -2. 查看dpkg日誌的時間和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括時間、主機名、動作和詳細信息。 - -![dpkglog](fig/dpkglog.png) - -#### 查看Xorg日誌 - -1. 在日誌收集工具界面,單擊 **Xorg日誌**。 -2. 查看Xorg日誌的時間和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括時間、主機名和詳細信息。 - -![xorglog](fig/xorglog.png) - -#### 查看應用日誌 - -1. 在日誌收集工具界面,單擊 **應用日誌**。 -2. 查看應用日誌的級別、時間、來源和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括來源、時間 、主機名、級別和詳細信息。 - -![applog](fig/applog.png) - -#### 查看開關機事件 - -1. 在日誌收集工具界面,單擊 **開關機事件**。 -2. 查看開關機事件的事件類型、用户名、時間和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括時間、主機名、事件類型、用户名和詳細信息。 - -![power_event](fig/power_event.png) - -#### 查看其它日誌 - -1. 在日誌收集工具界面,單擊 **其它日誌**。 -2. 其它日誌以文件列表方式展示日誌文件的文件名稱、修改日期。同類日誌文件以文件夾方式展示。 -3. 選中某個文件後,可查看該文件的詳細內容。拖拽文件列表和詳細內容分界線,可以同步調整兩區域大小。 - -![otherslog](fig/otherslog.png) - - - ### 自定義日誌 -自定義日誌功能是將日誌文件添加至日誌收集工具進行查看、導出。自定義日誌兼容Gsettings配置和Dconfig配置。 +自定義日誌功能允許您將日誌文件添加到日誌收集工具中進行查看和導出。自定義日誌兼容Gsettings配置和Dconfig配置。 **Gsettings配置** @@ -182,44 +83,49 @@ dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLog 1. 選擇某一日誌類型,單擊界面右上角 **導出** 按鈕。 -2. 如果彈出密碼認證窗口,輸入用户登錄密碼後單擊 **確定**。 +2. 如果彈出密碼認證窗口,輸入用戶登錄密碼後單擊 **確定**。 3. 在彈出的窗口中,選擇存儲位置,單擊 **保存**。 ->![icon](../common/notes.svg) 説明:您也可以單擊標題欄上的全部導出按鈕 ![icon](../common/export.svg),將系統日誌、內核日誌、啟動日誌、dpkg日誌、Xorg日誌、應用日誌和開關機事件的日誌全部導出。 +>![icon](../common/notes.svg) 說明:您也可以單擊標題欄上的全部導出按鈕 ![icon](../common/export.svg),將全量的日誌導出。 + +![export_log](fig/export_log.png) ### 刷新日誌 -刷新日誌分為手動刷新和自動刷新,如果是自動刷新日誌,還可以設置自動刷新的頻率。 +刷新日誌分為手動刷新和自動刷新,自動刷新日誌的頻率可以自定義。 #### 手動刷新日誌 單擊標題欄上的立即刷新按鈕 ![icon](../common/refresh.svg);或右鍵單擊某一日誌類型,選擇 **刷新**,刷新日誌。 +![refresh_log](fig/refresh_log.png) + #### 自動刷新日誌 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg) > **刷新頻率**。 -2. 選擇自動刷新的頻率:**每10秒**、**每1分鐘** 或 **每5分鐘**, 刷新日誌。 - 如果選擇 **不刷新**,表示停止自動刷新日誌。 +2. 選擇自動刷新的頻率:**每10秒**、**每1分鐘** 或 **每5分鐘**, 刷新日誌。選擇 **不刷新** 即停止自動刷新日誌。” -### 在文件管理器中顯示 +![auto_refresh](fig/auto_refresh.png) -在日誌收集工具中僅內核日誌、啟動日誌、dpkg日誌、Xorg日誌和應用日誌支持 **在文件管理器中顯示** 的功能。 +### 在檔案管理器中顯示 -1. 在日誌收集工具左側導航欄中,右鍵單擊某一日誌類型。 -2. 選擇 **在文件管理器中顯示**,定位到當前日誌的存儲位置。 +通過 **在檔案管理器中顯示** 的功能,您可以查看部分日誌的原始日誌文件。 +1. 在日誌收集工具左側導航欄中,右鍵單擊某一日誌類型。 +2. 選擇 **在檔案管理器中顯示**,定位到當前日誌的存儲位置。 -![right](fig/rightclick.png) +![show_in_fileManager](fig/show_in_fileManager.png) ### 清除日誌 -在日誌收集工具中僅內核日誌、啟動日誌、dpkg日誌、Xorg日誌和應用日誌支持 **清除日誌** 的功能。 1. 在日誌收集工具左側導航欄中,右鍵單擊某一日誌類型。 2. 選擇 **清除日誌**。 3. 彈出“確定清除日誌”提示框,單擊 **確定**。 -4. 如果彈出密碼認證窗口,輸入用户登錄密碼後單擊 **確定**。 +4. 如果彈出密碼認證窗口,輸入用戶登錄密碼後單擊 **確定**。 + +![delete_log](fig/delete_log.png) ## 主菜單 @@ -233,16 +139,14 @@ dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLog 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **主題**,選擇一個主題顏色。 - ### 幫助 -查看幫助手冊,進一步瞭解和使用日誌收集工具。 +查看幫助手冊,進一步了解和使用日誌收集工具。 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **幫助**。 3. 查看日誌收集工具的幫助手冊。 - ### 關於 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg)。 @@ -253,4 +157,3 @@ dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLog 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **退出**。 - diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/applog.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/applog.png deleted file mode 100755 index b35036a9..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/applog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/auto_refresh.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/auto_refresh.png new file mode 100644 index 00000000..24ed5bba Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/auto_refresh.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/bootlog.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/bootlog.png deleted file mode 100755 index 45587c00..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/bootlog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/delete_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/delete_log.png new file mode 100644 index 00000000..26e16568 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/delete_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/dpkglog.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/dpkglog.png deleted file mode 100755 index ea64c082..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/dpkglog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/export_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/export_log.png new file mode 100644 index 00000000..49e2f6f5 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/export_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/filter_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/filter_log.png new file mode 100644 index 00000000..eaea28e7 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/filter_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/kernlog.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/kernlog.png deleted file mode 100755 index a45fbe88..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/kernlog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/otherslog.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/otherslog.png deleted file mode 100644 index 855263d6..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/otherslog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/refresh_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/refresh_log.png new file mode 100644 index 00000000..1c046321 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/refresh_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/rightclick.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/rightclick.png deleted file mode 100755 index 87f0737d..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/rightclick.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/search_log.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/search_log.png new file mode 100644 index 00000000..4da5435b Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/search_log.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/show_in_fileManager.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/show_in_fileManager.png new file mode 100644 index 00000000..95a3f6e2 Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/show_in_fileManager.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/syslog.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/syslog.png new file mode 100644 index 00000000..a974d2aa Binary files /dev/null and b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/syslog.png differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/xorglog.png b/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/xorglog.png deleted file mode 100755 index 5ccb2783..00000000 Binary files a/application/assets/deepin-log-viewer/log-viewer/zh_TW/fig/xorglog.png and /dev/null differ diff --git a/application/assets/deepin-log-viewer/log-viewer/zh_TW/log-viewer.md b/application/assets/deepin-log-viewer/log-viewer/zh_TW/log-viewer.md old mode 100644 new mode 100755 index 264a5a58..fe5189dc --- a/application/assets/deepin-log-viewer/log-viewer/zh_TW/log-viewer.md +++ b/application/assets/deepin-log-viewer/log-viewer/zh_TW/log-viewer.md @@ -2,22 +2,20 @@ ## 概述 -日誌收集工具是負責收集程序運行時所產生日誌的小工具,如操作系統和應用程序在啟動、運行等過程中的相關信息。您可以通過分析詳細日誌信息,快速地找到故障原因並解決問題。 - - +日誌收集工具是負責收集程序運行時所產生日誌的小工具,如操作系統和應用程式在啟動、運行等過程中的相關資訊。您可以通過分析詳細日誌資訊,快速地找到故障原因並解決問題。 ## 使用入門 -您可以通過以下方式運行或關閉日誌收集工具,或者創建快捷方式。 +您可以透過以下方式運行、關閉日誌收集工具,或創建捷徑。 ### 運行日誌收集工具 -1. 單擊任務欄上的啟動器圖標 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器界面。 -2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到日誌收集工具圖標 ![deepin_log_viewer](../common/deepin_log_viewer.svg),單擊運行。 +1. 單擊任務欄上的啟動器圖示 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器界面。 +2. 上下滾動滑鼠滾輪瀏覽或通過搜索,找到日誌收集工具圖示 ![deepin_log_viewer](../common/deepin_log_viewer.svg),單擊運行。 3. 右鍵單擊 ![deepin_log_viewer](../common/deepin_log_viewer.svg),您可以: - - 單擊 **發送到桌面**,在桌面創建快捷方式。 - - 單擊 **發送到任務欄**,將應用程序固定到任務欄。 - - 單擊 **開機自動啟動**,將應用程序添加到開機啟動項,在電腦開機時自動運行該應用程序。 + - 單擊 **發送到桌面**,在桌面創建捷徑。 + - 單擊 **發送到任務欄**,將應用程式固定到任務欄。 + - 單擊 **開機自動啟動**,將應用程式添加到開機啟動項,在電腦開機時自動運行該應用程式。 ### 關閉日誌收集工具 @@ -27,204 +25,112 @@ ## 操作介紹 -### 搜索日誌 +> ![attention](../common/attention.svg)日誌收集工具支持多種日誌類型的展示。由於系統版本或架構的不同,可查看的日誌類型可能有所差異,具體功能請以最終頁面顯示內容為準。 +> +> ![attention](../common/attention.svg) 由於日誌類型的不同,提供的篩選項、是否能在檔案管理器中顯示及是否支持清除日誌的功能也有所區別,具體功能請參照最終頁面的顯示內容。 +> +> 下文將以系統日誌和內核日誌 **為例** ,介紹日誌收集工具的操作方式。 -1. 在日誌收集工具搜索框中,單擊 ![search](../common/search.svg)。 -2. 輸入關鍵字,實時顯示搜索結果。 -3. 單擊 ![close_icon](../common/close_icon.svg) ,則清空搜索內容。 +### 搜尋日誌 +1. 在日誌收集工具搜索框中,單擊 ![search](../common/search.svg)。 +2. 輸入關鍵字,即時顯示搜尋結果。 +3. 單擊 ![close_icon](../common/close_icon.svg) ,則清空搜尋內容。 +![search_log](fig/search_log.png) ### 篩選日誌 -您可以通過 **週期**、**級別**、**狀態**、**應用列表** 或 **事件類型** 來篩選日誌。 - - - - - - - - - - - - - - - - - - - - -
類型說明
按週期篩選按日誌生成的時間順序進行篩選。 -
    -
  • 選項包括:全部、今天、近三天、近一週、近一個月、近三個月,默認選項為全部。
  • -
  • 適用類型:除了啟動日誌沒有顯示時間外,其他類型的日誌都支持按週期篩選。
  • -
-
按級別篩選按照事件的級別高低進行篩選。 -
    -
  • 選項包括:全部、緊急、嚴重警告、嚴重、錯誤、警告、注意、信息、調試,默認選項為信息。
  • -
  • 適用類型:系統日誌、應用日誌。
  • -
-
按狀態篩選 -
    -
  • 選項包括:全部、OK、Failed,默認選項為全部。
  • -
  • 適用類型:僅適用於啟動日誌。
  • -
-
按應用列表篩選 - 適用類型:僅適用於應用日誌,對應用程序的log文件進行篩選,默認選項為第一個應用程序。
按事件類型篩選 -
    -
  • 選項包括:全部、登錄、開機、關機,默認選項為全部。
  • -
  • 適用類型:僅適用於開關機事件。
  • -
-
+1. 在日誌收集工具頂部篩選欄中,選擇需要篩選的選項。 +2. 點擊或選擇篩選項後,日誌收集工具將立即展示篩選結果。 +![filter_log](fig/filter_log.png) ### 查看日誌 -#### 查看系統日誌 - -1. 在日誌收集工具界面,單擊 **系統日誌**。 -2. 查看系統日誌的級別、進程、時間和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括進程、時間、主機名、進程號、級別和詳細信息。 +1. 在日誌收集工具界面,單擊 需要查看的日誌類型菜單,工具右側列表會展示當前日誌類型下所有的日誌。 +2. 滑鼠左鍵單擊某條日誌後,可在工具下方查看該日誌的詳細資訊。 ![rsylog](fig/syslog.png) -#### 查看內核日誌 - -1. 在日誌收集工具界面,單擊 **內核日誌**。 -2. 彈出“密碼認證”窗口,輸入用戶登錄密碼後單擊 **確定**。 -3. 查看內核日誌的時間、主機名、進程和信息。 -4. 選中某條日誌後,可查看該日誌的詳細信息,包括進程、時間、主機名和詳細信息。 - -![kernlog](fig/kernlog.png) - -#### 查看啟動日誌 - -1. 在日誌收集工具界面,單擊 **啟動日誌**。 -2. 彈出“密碼認證”窗口,輸入用戶登錄密碼後單擊 **確定**。 -3. 查看啟動日誌的狀態和信息。 -4. 選中某條日誌後,可查看該日誌的詳細信息,包括主機名、狀態和詳細信息。 - -![bootlog](fig/bootlog.png) - -#### 查看dpkg日誌 - -1. 在日誌收集工具界面,單擊 **dpkg日誌**。 -2. 查看dpkg日誌的時間和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括時間、主機名、動作和詳細信息。 - -![dpkglog](fig/dpkglog.png) - -#### 查看Xorg日誌 - -1. 在日誌收集工具界面,單擊 **Xorg日誌**。 -2. 查看Xorg日誌的時間和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括時間、主機名和詳細信息。 - -![xorglog](fig/xorglog.png) - -#### 查看應用日誌 - -1. 在日誌收集工具界面,單擊 **應用日誌**。 -2. 查看應用日誌的級別、時間、來源和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括來源、時間 、主機名、級別和詳細信息。 +### 自訂日誌 -![applog](fig/applog.png) - -#### 查看開關機事件 - -1. 在日誌收集工具界面,單擊 **開關機事件**。 -2. 查看開關機事件的事件類型、用戶名、時間和信息。 -3. 選中某條日誌後,可查看該日誌的詳細信息,包括時間、主機名、事件類型、用戶名和詳細信息。 - -![power_event](fig/power_event.png) - -#### 查看其它日誌 - -1. 在日誌收集工具界面,單擊 **其它日誌**。 -2. 其它日誌以文件列表方式展示日誌文件的文件名稱、修改日期。同類日誌文件以文件夾方式展示。 -3. 選中某個文件後,可查看該文件的詳細內容。拖拽文件列表和詳細內容分界線,可以同步調整兩區域大小。 - -![otherslog](fig/otherslog.png) - - - -### 自定義日誌 - -自定義日誌功能是將日誌文件添加至日誌收集工具進行查看、導出。自定義日誌兼容Gsettings配置和Dconfig配置。 +自訂日誌功能允許您將日誌檔案添加到日誌收集工具中進行查看和導出。自訂日誌相容Gsettings配置和Dconfig配置。 **Gsettings配置** -1. 在終端執行Gsettings配置設置命令,“[]”中填寫日誌文件路徑,比如:['a.log','b.log','c.log']。 +1. 在終端執行Gsettings配置設置命令,“[]”中填寫日誌檔案路徑,比如:['a.log','b.log','c.log']。 ```shell gsettings set com.deepin.log.viewer customlogfiles [] ``` -2. 在日誌收集工具界面,單擊**自定義日誌**,即可發現已有配置。 +2. 在日誌收集工具界面,單擊**自訂日誌**,即可發現已有配置。 **Dconfig配置** -1. 在終端執行Dconfig配置設置命令,"[]"中填寫日誌文件路徑,比如:["a.log","b.log","c.log"] +1. 在終端執行Dconfig配置設置命令,"[]"中填寫日誌檔案路徑,比如:["a.log","b.log","c.log"] ```shell dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLogFiles -v '["a.log","b.log","c.log"]' ``` -2. 在日誌收集工具界面,單擊**自定義日誌**,即可發現已有配置。 +2. 在日誌收集工具界面,單擊**自訂日誌**,即可發現已有配置。 -### 導出日誌 +### 匯出日誌 -導出日誌功能是將日誌查詢結果導出到本地,幫助您分析、定位和解決問題。 +匯出日誌功能是將日誌查詢結果導出到本地,幫助您分析、定位和解決問題。 -1. 選擇某一日誌類型,單擊界面右上角 **導出** 按鈕。 +1. 選擇某一日誌類型,單擊界面右上角 **匯出** 按鈕。 2. 如果彈出密碼認證窗口,輸入用戶登錄密碼後單擊 **確定**。 -3. 在彈出的窗口中,選擇存儲位置,單擊 **保存**。 +3. 在彈出的窗口中,選擇儲存位置,單擊 **保存**。 + +>![icon](../common/notes.svg) 說明:您也可以單擊標題欄上的全部匯出按鈕 ![icon](../common/export.svg),將全量的日誌匯出。 ->![icon](../common/notes.svg) 說明:您也可以單擊標題欄上的全部導出按鈕 ![icon](../common/export.svg),將系統日誌、內核日誌、啟動日誌、dpkg日誌、Xorg日誌、應用日誌和開關機事件的日誌全部導出。 +![export_log](fig/export_log.png) -### 刷新日誌 +### 重新整理 -刷新日誌分為手動刷新和自動刷新,如果是自動刷新日誌,還可以設置自動刷新的頻率。 +重新整理分為手動重新整理和自動重新整理,自動重新整理日誌的頻率可以自訂。 #### 手動刷新日誌 -單擊標題欄上的立即刷新按鈕 ![icon](../common/refresh.svg);或右鍵單擊某一日誌類型,選擇 **刷新**,刷新日誌。 +單擊標題欄上的重新整理按鈕 ![icon](../common/refresh.svg);或右鍵單擊某一日誌類型,選擇 **重新整理**,重新整理日誌。 -#### 自動刷新日誌 +![refresh_log](fig/refresh_log.png) -1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg) > **刷新頻率**。 -2. 選擇自動刷新的頻率:**每10秒**、**每1分鐘** 或 **每5分鐘**, 刷新日誌。 +#### 自動重新整理 - 如果選擇 **不刷新**,表示停止自動刷新日誌。 +1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg) > **重新整理頻率**。 -### 在文件管理器中顯示 +2. 選擇自動重新整理的頻率:**每10秒**、**每1分鐘** 或 **每5分鐘**, 重新整理日誌。選擇 **不刷新** 即停止自動重新整理日誌。” -在日誌收集工具中僅內核日誌、啟動日誌、dpkg日誌、Xorg日誌和應用日誌支持 **在文件管理器中顯示** 的功能。 +![auto_refresh](fig/auto_refresh.png) -1. 在日誌收集工具左側導航欄中,右鍵單擊某一日誌類型。 -2. 選擇 **在文件管理器中顯示**,定位到當前日誌的存儲位置。 +### 在檔案管理器中顯示 +通過 **在檔案管理器中顯示** 的功能,您可以查看部分日誌的原始日誌檔案。 + +1. 在日誌收集工具左側導航欄中,右鍵單擊某一日誌類型。 +2. 選擇 **在檔案管理器中顯示**,定位到當前日誌的儲存位置。 -![right](fig/rightclick.png) +![show_in_fileManager](fig/show_in_fileManager.png) ### 清除日誌 -在日誌收集工具中僅內核日誌、啟動日誌、dpkg日誌、Xorg日誌和應用日誌支持 **清除日誌** 的功能。 1. 在日誌收集工具左側導航欄中,右鍵單擊某一日誌類型。 2. 選擇 **清除日誌**。 3. 彈出“確定清除日誌”提示框,單擊 **確定**。 4. 如果彈出密碼認證窗口,輸入用戶登錄密碼後單擊 **確定**。 +![delete_log](fig/delete_log.png) -## 主菜單 -在主菜單中,您可以 [設置刷新頻率](#自動刷新日誌)、切換窗口主題,查看幫助手冊等。 +## 主選單 + +在主選單中,您可以 [設置刷新頻率](#自動刷新日誌)、切換窗口主題,查看幫助手冊等。 ### 主題 @@ -233,16 +139,14 @@ dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLog 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **主題**,選擇一個主題顏色。 - ### 幫助 -查看幫助手冊,進一步瞭解和使用日誌收集工具。 +查看幫助手冊,進一步了解和使用日誌收集工具。 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **幫助**。 3. 查看日誌收集工具的幫助手冊。 - ### 關於 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg)。 @@ -253,4 +157,3 @@ dde-dconfig --set -a org.deepin.log.viewer -r org.deepin.log.viewer -k customLog 1. 在日誌收集工具界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 選擇 **退出**。 -