---
name: "log4tango::Level"
section: "3"
platform: "linux"
package: "liblog4tango-doc"
version: "9.3.4+dfsg1-2+deb12u1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/log4tango::Level"
---

# log4tango::Level(3)

## NAME

log4tango::Level

## SYNOPSIS

`#include <Level.hh>`

### Public Types

enum **LevelLevel** { **OFF** = 100, **FATAL** = 200, **ERROR** = 300, **WARN** = 400, **INFO** = 500, **DEBUG** = 600 }\
 Levels of Priorities.  typedef int **Value**\
 The type of **Level** Values.

### Static Public Member Functions

static const std::string & **get\_name** (**Value** level)\
 Returns the name of the given level value.  static **Value** **get\_value** (const std::string &level\_name)\
 Returns the value of the given level name.

## Member Typedef Documentation

### typedef int log4tango::Level::Value

The type of **Level** Values.

## Member Enumeration Documentation

### enum log4tango::Level::LevelLevel

Levels of Priorities.

**Enumerator**

- *OFF*

  - *FATAL*

  - *ERROR*

  - *WARN*

  - *INFO*

  - *DEBUG*

  ## Member Function Documentation

### const std::string & log4tango::Level::get\_name (Value level)` [static]`

*Returns the name of the given level value. Currently, if the value is not one of the LevelLevel values, the method returns the name of the largest level smaller the given value.*

**Parameters**

*level the numeric value of the level.*

**Returns**

*a string representing the name of the level.*

### Level::Value log4tango::Level::get\_value (const std::string & level\_name)` [static]`

*Returns the value of the given level name. This can be either one of 'OFF', 'ERRROR', ... or a decimal string representation of the value, e.g. '500' for DEBUG.*

**Parameters**

*level\_name the string containing the the of the level*

**Returns**

*the value corresponding with the level name*

**Exceptions**

*std::invalid\_argument if the level\_name does not correspond with a known* **Level** *name or a number*

## Author

*Generated automatically by Doxygen for log4tango from the source code.*
