7.3.32. log_level — Groonga v16.1.0 documentation

Skip to main content
`Ctrl`+`K`

# 7.3.32. `log_level`

## 7.3.32.1. Summary

`log_level` command sets log level of Groonga.

## 7.3.32.2. Syntax

    log_level level

## 7.3.32.3. Usage

    log_level warning
    [true]

## 7.3.32.4. Parameters

### 7.3.32.4.1. `level`

Specify log level with a character or string which means log level.

Value | Alias
--- | ---
`E` | `emerge` or `emergency`
`A` | `alert`
`C` | `crit` or `critical`
`e` | `error`
`w` | `warn` or `warning`
`n` | `notice`
`i` | `info`
`d` | `debug`
`-` | `dump`

Example:

    emergency
    alert
    critical
    error
    warning
    notice
    info
    debug

## 7.3.32.5. Return value

`log_level` command returns whether log level configuration is succeeded or not:

    [HEADER, SUCCEEDED_OR_NOT]

`HEADER`

> See Output format about `HEADER`.

`SUCCEEDED_OR_NOT`

> If command succeeded, it returns true, otherwise it returns false on error.

## 7.3.32.6. See also

log_put log_reopen