> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loupp.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Logs

> View and manage log files for your shared hosting applications

## Overview

View, fetch, and clear log files from your Laravel applications on shared hosting servers. The logs interface provides access to application logs with syntax highlighting and management tools.

## Features

<CardGroup cols={3}>
  <Card title="View Logs" icon="eye">
    View logs in a syntax-highlighted editor
  </Card>

  <Card title="Fetch Logs" icon="refresh">
    Fetch latest logs from server
  </Card>

  <Card title="Clear Logs" icon="trash">
    Clear log files to free up disk space
  </Card>
</CardGroup>

## Usage

### Operations

<Steps>
  <Step title="Fetch Logs">
    Click the refresh button to get the latest logs from your server
  </Step>

  <Step title="View Logs">
    Logs display in a read-only editor with line numbers and syntax highlighting
  </Step>

  <Step title="Clear Logs">
    Click the brush button to empty log files and free up disk space
  </Step>
</Steps>

<Info>
  **Log Path**: Logs are fetched from `storage/logs/laravel.log` in your application directory
</Info>

## Log Management

### Automatic Fetching

<Steps>
  <Step title="Connect to server">
    System connects to your shared hosting server via SSH
  </Step>

  <Step title="Read log file">
    Reads the log content from `storage/logs/laravel.log`
  </Step>

  <Step title="Display content">
    Logs are formatted and displayed in the editor interface
  </Step>
</Steps>

### Log Clearing

<Warning>
  Clearing logs is irreversible. Ensure you have backed up any important information before proceeding.
</Warning>

<Steps>
  <Step title="Clear operation">
    System connects to server and empties the log file
  </Step>

  <Step title="Update display">
    Interface shows "No logs available, click the refresh button"
  </Step>

  <Step title="Storage freed">
    Disk space is freed up on your hosting account
  </Step>
</Steps>
