---
title: "Levels"
description: "The five levels and the names mapped onto them."
canonical_url: "https://docs.logstrace.dev/guides/sending-logs/levels"
---
# Levels

> The five levels and the names mapped onto them.

<table>
<thead>
  <tr>
    <th>
      Level
    </th>
    
    <th>
      Use for
    </th>
    
    <th>
      Also accepted
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        debug
      </code>
    </td>
    
    <td>
      Detail you only need while investigating
    </td>
    
    <td>
      <code>
        trace
      </code>
      
      , <code>
        verbose
      </code>
      
      , <code>
        silly
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      Normal events (default)
    </td>
    
    <td>
      <code>
        information
      </code>
      
      , <code>
        notice
      </code>
      
      , <code>
        log
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        warn
      </code>
    </td>
    
    <td>
      Something unusual that didn't fail
    </td>
    
    <td>
      <code>
        warning
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        error
      </code>
    </td>
    
    <td>
      A failed operation
    </td>
    
    <td>
      <code>
        err
      </code>
      
      , <code>
        exception
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        fatal
      </code>
    </td>
    
    <td>
      The process or service can't continue
    </td>
    
    <td>
      <code>
        critical
      </code>
      
      , <code>
        crit
      </code>
      
      , <code>
        alert
      </code>
      
      , <code>
        emergency
      </code>
      
      , <code>
        emerg
      </code>
      
      , <code>
        panic
      </code>
    </td>
  </tr>
</tbody>
</table>

Matching ignores case, so `WARNING` and `Error` work.

## Numeric levels

Numbers follow the pino scale:

<table>
<thead>
  <tr>
    <th>
      Number
    </th>
    
    <th>
      Level
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      < 30
    </td>
    
    <td>
      <code>
        debug
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      30–39
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      40–49
    </td>
    
    <td>
      <code>
        warn
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      50–59
    </td>
    
    <td>
      <code>
        error
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      ≥ 60
    </td>
    
    <td>
      <code>
        fatal
      </code>
    </td>
  </tr>
</tbody>
</table>

An unknown level name rejects the request with `400`, so typos don't silently become `info`.


## Sitemap

See the full [sitemap](https://docs.logstrace.dev/sitemap.md) for all pages.
