ComusThumbz 文档
管理员登录

Log Viewer

 

What This Page Does

The Log Viewer lets you see what is happening behind the scenes on your site. It shows activity records (called "logs") that your site creates as it runs. You can use it to spot errors, search for specific events, and clean up old log files to free up space.

[Screenshot: page-overview]


How to Get Here

Navigate to Admin Panel > Tools > Log Viewer


Understanding the Page

When you open the Log Viewer, you will see a summary bar at the top, a file list on the left, and a viewing area on the right.

At the very top, below the page title, you will see a row of links to other tools in the same family (Feature Toggles, Style Manager, Layout Manager, and others). The Log Viewer link is highlighted to show you are on this page.

Summary Cards

Four cards give you a quick snapshot of your logs:

Card What It Tells You
Total Log Files How many log files your site has created
Total Size How much disk space all your log files use combined
Errors Today How many errors were recorded today -- a high number may need attention
Warnings Today How many warnings were recorded today
Tip: Check the Errors Today card each time you visit. A sudden jump usually means something on your site needs attention.

[Screenshot: statistics-cards]

File Browser (Left Side)

The left panel lists all your log files, grouped by category:

  • Application Logs -- General site activity
  • API Logs -- Communication between your site's systems
  • Video Processor Logs -- Video conversion and processing activity
  • Storage Server Logs -- File storage and delivery activity
  • Admin Logs -- Actions taken in the admin panel

Each file shows its name and size. If a file contains errors from today, a red badge shows the error count next to the filename.

Click a group name to expand or collapse it. Click a file to view its contents.

[Screenshot: file-browser-panel]

Log Viewer (Right Side)

When you select a file, its contents appear here. Each line is color-coded so you can quickly tell what type of entry it is:

  • Red lines are errors
  • Yellow lines are warnings
  • Blue lines are informational messages
  • Gray lines are detailed debug messages

An information bar above the log content shows the file size, total number of lines, when it was last updated, and which lines you are currently viewing.


Common Tasks

How to View a Log File

  1. Look at the file list on the left side of the page.
  2. Click the group name (for example, Application Logs) to expand it if it is collapsed.
  3. Click the file you want to view.
  4. The file contents appear in the viewing area on the right.
Note: The viewer shows the most recent 500 lines by default, so you see the latest activity first.

How to Search Within a Log File

Use this when you are looking for a specific word or phrase in the file you have open.

  1. Select a log file from the left panel.
  2. Type your search term into the Search box above the log content.
  3. Press Enter or click Apply.
  4. Matching text is highlighted in yellow so you can spot it easily.

How to Filter by Type

Use this to show only errors, warnings, or other specific types of entries.

  1. Select a log file from the left panel.
  2. Click the Level dropdown above the log content.
  3. Select the type you want to see:
  • All Levels -- Show everything
  • Error -- Only errors
  • Warning -- Only warnings
  • Info -- Only informational messages
  • Debug -- Only detailed debug messages
  1. Click Apply.
Tip: You can combine a search term with a level filter. For example, select Error and type database to find only database-related errors.

How to Search Across All Log Files

Use this when you are not sure which file contains the information you need.

  1. Click the Search All Logs button at the top of the page.
  2. A search window opens.
  3. Type your search term (at least 2 characters).
  4. Optionally, select a level from the dropdown to narrow results.
  5. Click Search or press Enter.
  6. Results appear showing the file name, line number, and matching content.
  7. Click any result to jump directly to that file in the viewer.

[Screenshot: global-search-results]

How to Watch a Log File in Real Time

Use this when you want to see new activity appear as it happens, for example while testing something on your site.

  1. Select a log file from the left panel.
  2. Click the Tail Mode button (the circular arrow icon) in the toolbar above the log content.
  3. A green LIVE indicator appears, and new entries will show up automatically.
  4. Click Tail Mode again to stop live monitoring.
Warning: Live monitoring uses more server resources. Turn it off when you are done watching.

How to Download a Log File

Use this to save a copy of a log file to your computer.

  1. Select a log file from the left panel.
  2. Click the Download button (the down arrow icon) in the toolbar.
  3. The file saves to your computer's downloads folder.

How to Clear a Log File

This empties the file but keeps it in place so your site can continue writing to it.

  1. Select a log file, or hover over a file in the left panel and click the gear icon that appears.
  2. In the management window that opens, click Truncate.
  3. Confirm when prompted.
Warning: Clearing a file permanently removes all its contents. Download the file first if you might need the information later.

How to Archive a Log File (Rotate)

This saves the current file with a date stamp in its name and creates a fresh, empty file in its place. It is the safest way to start with a clean log without losing your history.

  1. Select a log file, or hover over a file in the left panel and click the gear icon.
  2. In the management window, click Rotate.
  3. Confirm when prompted.
  4. The old file appears in the file list with a date-and-time suffix (for example, error2026-02-03143022.log), and the original filename is now an empty file ready for new entries.
Tip: Use Rotate instead of Truncate whenever possible. It keeps a backup of your old log data while giving you a fresh start.

How to Split a Large Log File

If a log file has grown very large and is slow to view, you can break it into smaller pieces.

  1. Select a log file, or hover over a file in the left panel and click the gear icon.
  2. In the management window, choose a split size from the dropdown:
  • 10 MB
  • 25 MB (the default)
  • 50 MB
  • 100 MB
  1. Click Split.
  2. Confirm when prompted.
  3. The original file is replaced by numbered parts (for example, errorpart1.log, errorpart2.log).
Note: The file must be larger than the split size you select. If it is too small, you will see a message letting you know splitting is not needed.

How to Delete a Single Log File

  1. Select the log file you want to remove.
  2. Click the Delete button (the trash icon) in the toolbar.
  3. Confirm when prompted.
Warning: Deleted files cannot be recovered. Download any important logs before deleting them.

How to Clean Up Old Log Files

Use this to remove log files that are past a certain age, freeing up disk space.

  1. Click the Delete Old Logs button (red) at the top of the page.
  2. Choose how old files must be before they are deleted:
  • 7 days
  • 14 days
  • 30 days (recommended)
  • 60 days
  • 90 days
  1. Click Delete Logs.
  2. A confirmation message tells you how many files were removed.
Tip: Run this cleanup once a month to keep your server tidy. 30 days is a good starting point -- it keeps enough history for troubleshooting while preventing files from piling up.

Searching

Type a keyword into the Search box above the log content and press Enter or click Apply. Matching text is highlighted in yellow.

Filtering

Use the Level dropdown to show only certain types of log entries:

Filter What It Shows
All Levels Every log entry
Error Only error messages (things that went wrong)
Warning Only warning messages (things that might cause problems)
Info Only informational messages (normal activity)
Debug Only detailed technical messages

To clear your filters, set the dropdown back to All Levels, clear the search box, and click Apply.


Tips for New Users

Tip:
  • Check the Errors Today card regularly. Zero errors is normal. A sudden increase means something needs your attention.
  • Use Search All Logs when you are investigating a problem but do not know which log file to look in.
  • Use Rotate instead of Truncate to keep a backup before clearing a log file.
  • Clean up old logs monthly using the Delete Old Logs button to prevent disk space issues.
  • If a log file is very large and slow to open, use the Split feature to break it into smaller, faster-loading pieces.

Troubleshooting

A log file is slow to open

What you see: You click a file and it takes a long time to load, or the page feels sluggish.

How to fix it:

  1. Use the Level filter to show only the type of entries you need (for example, Error).
  2. Use the Search box to find specific entries instead of scrolling through everything.
  3. If the file is very large, open the management window (click the gear icon) and use Split to break it into smaller files.
  4. You can also use Rotate to archive the large file and start fresh.

 

No files appear in the file list

What you see: The left panel is empty or all groups show zero files.

How to fix it:

  1. This is normal if your site is brand new and has not generated any log files yet.
  2. Visit a few pages on your site, then come back and refresh the Log Viewer.
  3. If you still see no files after your site has been running for a while, contact your hosting provider or developer to confirm logging is set up correctly.

 

Live monitoring is not showing new entries

What you see: You turned on Tail Mode but no new lines appear.

How to fix it:

  1. Make sure the log file you selected is one that your site actively writes to. Some files may only update during specific events (like video processing).
  2. Try triggering an action on your site (such as uploading a video or visiting a page) and watch for new entries.
  3. If nothing appears after several minutes, the file may not be in active use. Try a different log file.

 

The page asks you to log in again

What you see: You are redirected to the login page or see an error about an invalid session.

How to fix it:

  1. Log back in to the admin panel.
  2. Navigate back to Admin Panel > Tools > Log Viewer.
  3. This happens when your session expires after being idle for a while. It is normal.

 

You see a message that changes are disabled

What you see: An orange banner at the top of the page says modifications are disabled, and buttons like Delete, Truncate, Rotate, and Split do not work.

How to fix it:
This means your site is running in demonstration mode. Contact your developer or administrator to switch to full mode so you can manage log files.


Page When to Use It
Feature Toggles Turn site features on or off without changing code
Style Manager Customize your site's colors and visual appearance
Layout Manager Rearrange how content is laid out on your pages
API Tester Test and verify that your site's internal connections are working
SEO Manager Manage search engine settings for your site
Sitemap Generator Create and update your site's sitemap for search engines