# Retrieve currently configured log levels for a specific module

`GET /devops/logging/{moduleName}`

Return the configured log

Authentication (security requirement alternatives):

```json
[
  {
    "DevOpsBasic": []
  },
  {
    "DevOpsBearer": []
  }
]
```

- DevOpsBasic: http (basic). Eclipse Ditto devops user (devops) + password (foobar)
- DevOpsBearer: http (bearer). A JSON Web Token issued by a supported OAuth 2.0 Identity Provider for the Eclipse Ditto devops user.

Parameters:

- `moduleName` (path, string, required) - The name of module
  Type: string
  
  Example:
  
  ```json
  "gateway"
  ```

- `includeDisabledLoggers` (query, boolean, optional) - Include disabled loggers
  Type: boolean

Responses:

- 200: Return The current value of logging level

Content type: application/json

Type: Module

Module

Schema: [Module](https://sourcey-ditto.pages.dev/http-api-doc/models/module.md)

- `pod` (optional)
  Type: object
  
  Details of logging configuration
  
  - `type` (optional)
    Type: string
    
    devops.responses:retrieveLoggerConfig
  
  - `status` (optional)
    Type: integer
    
    The HTTP status
  
  - `serviceName` (optional)
    Type: string
    
    name of service
  
  - `instance` (optional)
    Type: string
    
    instance of module
  
  - `loggerConfigs` (optional)
    Type: Array<object>
    
    Items:
      Type: object
      
      - `level` (optional)
        Type: string
      
      - `logger` (optional)
        Type: string

- 401: The request could not be completed due to missing authentication.

Content type: text/plain

Type: TextUnauthorizeError

Schema: [TextUnauthorizeError](https://sourcey-ditto.pages.dev/http-api-doc/models/textunauthorizeerror.md)

Example:

```json
"The supplied authentication is invalid"
```

## Examples

### cURL

```bash
curl -X GET 'https://ditto.eclipseprojects.io/devops/logging/gateway' \
  -H 'Authorization: Basic WU9VUl9VU0VSTkFNRTpZT1VSX1BBU1NXT1JE'
```

### JavaScript

```javascript
const response = await fetch('https://ditto.eclipseprojects.io/devops/logging/gateway', {
  method: 'GET',
  headers: {
    'Authorization': 'Basic WU9VUl9VU0VSTkFNRTpZT1VSX1BBU1NXT1JE',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'https://ditto.eclipseprojects.io/devops/logging/gateway',
    headers={
        'Authorization': 'Basic WU9VUl9VU0VSTkFNRTpZT1VSX1BBU1NXT1JE',
    },
)
print(response.text)
```
