Kconfig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # Kconfig - Actions system manager
  2. #
  3. # Copyright (c) 2016 Actions Corporation
  4. #
  5. # SPDX-License-Identifier: Apache-2.0
  6. #
  7. menuconfig ACTLOG
  8. bool
  9. prompt "Actlog"
  10. default n
  11. help
  12. This option enables actions log system
  13. if ACTLOG
  14. config ACTLOG_COMPILE_LEVEL
  15. int "Default actlog compile level"
  16. default 3
  17. range 0 4
  18. help
  19. Sets log level for modules which don't specify it explicitly. When
  20. set to 0 it means log will not be activated for those modules.
  21. Levels are:
  22. - 0 OFF, do not write by default
  23. - 1 ERROR, default to only write LOG_LEVEL_ERR
  24. - 2 WARNING, default to write LOG_LEVEL_WRN
  25. - 3 INFO, default to write LOG_LEVEL_INFO
  26. - 4 DEBUG, default to write LOG_LEVEL_DBG
  27. config ACTLOG_APP_COMPILE_LEVEL
  28. int "Default actlog app compile level"
  29. default 3
  30. range 0 4
  31. help
  32. Sets log level for modules which don't specify it explicitly. When
  33. set to 0 it means log will not be activated for those modules.
  34. Levels are:
  35. - 0 OFF, do not write by default
  36. - 1 ERROR, default to only write LOG_LEVEL_ERR
  37. - 2 WARNING, default to write LOG_LEVEL_WRN
  38. - 3 INFO, default to write LOG_LEVEL_INFO
  39. - 4 DEBUG, default to write LOG_LEVEL_DBG
  40. config ACTLOG_USE_NORMALLOG
  41. bool "Enable normal in actlog"
  42. default n
  43. help
  44. Enable normal log in actlog
  45. config ACTLOG_USE_NANOLOG
  46. bool "Enable nanolog replace normal log in actlog"
  47. default n
  48. help
  49. Enable nanolog replace normal log in actlog
  50. config ACTLOG_COMPILE_MODUL_LEVEL
  51. bool "Enable actlog compile by module level"
  52. default n
  53. help
  54. Enable actlog compile by module level or not
  55. config ACTLOG_SHOW_FUNCTION
  56. bool "Enable show functions in actlog"
  57. default n
  58. help
  59. Enable show functions in actlog
  60. config ACTLOG_SHOW_TIMESTAMP
  61. bool "Enable show timestamp in actlog"
  62. default n
  63. help
  64. Enable show timestamp in actlog
  65. config ACTLOG_OUTPUT_BINARY
  66. bool "Enable actlog output to flash binary region"
  67. default n
  68. help
  69. Enable actlog output to flash binary region
  70. config ACTLOG_OUTPUT_FILE
  71. bool "Enable actlog output to flash filesystem"
  72. default n
  73. help
  74. Enable actlog output to flash filesystem
  75. config ACTLOG_OUTPUT_FLOW
  76. bool "Enable actlog output to flow device"
  77. default n
  78. help
  79. Enable actlog output to flow device
  80. config ACTLOG_OUTPUT_USER
  81. bool "Enable actlog output to user-defined flow"
  82. default n
  83. help
  84. Enable actlog output to user-defined flow
  85. config ACTLOG_LOG_DATA_COMPRESS
  86. bool "Enable actlog data compress store"
  87. default n
  88. help
  89. enable actlog data compress store
  90. config ACTLOG_LOG_BUFFER
  91. bool "Enable actlog store normal log to flash buffer"
  92. default n
  93. help
  94. Enable actlog store normal log to flash buffer
  95. config ACTLOG_RUNTIME_LOG_BUFFER
  96. bool "Enable actlog store runtime log to flash buffer"
  97. default n
  98. help
  99. Enable actlog store runtime log to flash buffer
  100. config ACTLOG_EVENT_BUFFER
  101. bool "Enable actlog store event to flash buffer"
  102. default n
  103. help
  104. Enable actlog store event to flash buffef
  105. config DEBUG_ACTLOG_SHELL
  106. bool "Enable actlog shell to dump actlog"
  107. default n
  108. help
  109. Enable actlog shell to dump actlog
  110. config ACTLOG_FLASH_CACHE_SIZE
  111. int "Default actlog flash cache size, must be an integer multiple of 4k"
  112. default 2048
  113. help
  114. Default actlog flash cache size, must be an integer multiple of 4k
  115. config ACTLOG_LINEBUF_SIZE
  116. int "Default actlog line buf size"
  117. default 256
  118. help
  119. Default actlog line buf size
  120. config ACTLOG_FMT_DATA_SIZE
  121. int "Default actlog vsnprintk max buf size"
  122. default 128
  123. help
  124. Default actlog vsnprintk max buf size
  125. config ACTLOG_NORMAL_LOG_NUM
  126. int "Default actlog normal log number"
  127. default 3
  128. help
  129. Default actlog normal log number
  130. config ACTLOG_NANO_LOG_NUM
  131. int "Default actlog nano log number"
  132. default 16
  133. help
  134. Default actlog nano log number
  135. config ACTLOG_PRINT_DROP_COUNT
  136. bool "Enable actlog output drop count"
  137. default n
  138. help
  139. Enable actlog output drop count
  140. #specify module name
  141. module = ACTLOG
  142. #specify module name str
  143. module-str = logging_actlog
  144. #import kconfig template
  145. source "subsys/logging/Kconfig.template.log_config"
  146. endif