swagger: '2.0' info: title: Firecracker Actions Logger API description: RESTful public-facing API. The API is accessible through HTTP calls on specific URLs carrying JSON modeled data. The transport medium is a Unix Domain Socket. version: 1.16.0-dev termsOfService: '' contact: email: firecracker-maintainers@amazon.com license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html host: localhost basePath: / schemes: - http consumes: - application/json produces: - application/json tags: - name: Logger paths: /logger: put: summary: Initializes the logger by specifying a named pipe or a file for the logs output. operationId: putLogger parameters: - name: body in: body description: Logging system description required: true schema: $ref: '#/definitions/Logger' responses: 204: description: Logger created. 400: description: Logger cannot be initialized due to bad input. schema: $ref: '#/definitions/Error' default: description: Internal server error. schema: $ref: '#/definitions/Error' tags: - Logger definitions: Error: type: object properties: fault_message: type: string description: A description of the error condition readOnly: true Logger: type: object description: Describes the configuration option for the logging capability. properties: level: type: string description: Set the level. The possible values are case-insensitive. enum: - Error - Warning - Info - Debug - Trace - false default: Info log_path: type: string description: Path to the named pipe or file for the human readable log output. show_level: type: boolean description: Whether or not to output the level in the logs. default: false show_log_origin: type: boolean description: Whether or not to include the file path and line number of the log's origin. default: false module: type: string description: The module path to filter log messages by. example: api_server::request