actions.adoc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [#log-levels]
  2. = Action logs
  3. [NOTE]
  4. There are two different types of logs in OliveTin - xref:advanced_configuration/logs.adoc[application logs] and xref:logs/actions.adoc[action logs]. This page is about the __action logs__, which are the logs that are generated by the actions that you run in OliveTin.
  5. == Controlling access to see action logs
  6. You can control access to action logs using **permissions**, which are assigned to actions.
  7. === Disabling logs for all users
  8. [source, yaml]
  9. ----
  10. logLevel: info
  11. defaultPermissions:
  12. logs: false
  13. ----
  14. === Enabling logs for a specific ACL
  15. [source, yaml]
  16. ----
  17. logLevel: info
  18. defaultPermissions:
  19. logs: false
  20. accessControlLists:
  21. - name: admin
  22. matchUsernames:
  23. - alice
  24. - bob
  25. permissions:
  26. logs: true
  27. addToEveryAction: true
  28. actions:
  29. - title: My Action
  30. shell: echo "Hello World"
  31. ----
  32. == Disabling the log viewer
  33. You can disable the log viewer in the interface with xref::security/acl.adoc#_acls_and_policies_global[security policy configuration], using the defaults, or via an ACL. Examples are shown below for each of these methods.
  34. === Disable log viewer for all users;
  35. [source, yaml]
  36. ----
  37. logLevel: info
  38. defaultPolicy:
  39. showLogList: false
  40. ----
  41. === Disable log viewer expect for admin users
  42. [source, yaml]
  43. ----
  44. logLevel: info
  45. defaultPolicy:
  46. showLogList: false
  47. accessControlLists:
  48. - name: admin
  49. matchUsernames:
  50. - alice
  51. - bob
  52. policy:
  53. showLogList: true
  54. ----
  55. == See Also
  56. * xref:logs/saving.adoc[Saving action logs]
  57. * xref:advanced_configuration/logs.adoc[Application logs]
  58. * xref:logs/calendar.adoc[Calendar view]