logging.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoServer Logging
  6. description: The Logging area shows logging options for the server
  7. contact:
  8. name: GeoServer
  9. email: 'geoserver-users@osgeo.org'
  10. url: 'https://geoserver.org/comm/'
  11. host: localhost:8080
  12. basePath: /geoserver/rest
  13. paths:
  14. /logging:
  15. get:
  16. operationId: getLogging
  17. tags:
  18. - "Logging"
  19. summary: Get logging configuration of GeoServer
  20. description: Displays a list of all logging settings on the server. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/logging.xml" for XML).
  21. produces:
  22. - application/xml
  23. - application/json
  24. - text/html
  25. responses:
  26. 200:
  27. description: OK
  28. schema:
  29. $ref: "#/definitions/Logging"
  30. examples:
  31. application/xml: |
  32. <logging>
  33. <level>TEST_LOGGING</level>
  34. <location>logs/geoserver.log</location>
  35. <stdOutLogging>true</stdOutLogging>
  36. </logging>
  37. application/json: |
  38. {
  39. "logging": {
  40. "level": "TEST_LOGGING",
  41. "location": "logs/geoserver.log",
  42. "stdOutLogging": true
  43. }
  44. }
  45. put:
  46. operationId: putLogging*
  47. tags:
  48. - "Logging"
  49. summary: Update logging
  50. description: Updates logging settings on the server.
  51. parameters:
  52. - name: loggingBody
  53. description: The logging information to upload.
  54. in: body
  55. required: true
  56. schema:
  57. $ref: "#/definitions/Logging"
  58. consumes:
  59. - application/xml
  60. - application/json
  61. responses:
  62. 200:
  63. description: OK
  64. definitions:
  65. Logging:
  66. type: object
  67. xml:
  68. name: logging
  69. properties:
  70. id:
  71. type: string
  72. description: For internal use only. Do not modify.
  73. level:
  74. type: string
  75. description: Logging level of GeoServer such as DEFAULT_LOGGING
  76. location:
  77. type: string
  78. description: Logging file path. Relative to the GeoServer data directory.
  79. stdOutLogging:
  80. type: boolean
  81. description: Enables/disables stdOutLogging