Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 634 Bytes

File metadata and controls

13 lines (12 loc) · 634 Bytes

APIs - Focus on Simplicity and Ease of Use:

  • 4 simple APIs for usage:
    • Initialization (at the start of main):
      - spl_init_log_ext(SPL_INPUT_ARG *input)
    • Logging (in any thread):
      - spllog(level, fmt, ...)
      - Levels: SPL_LOG_DEBUG, SPL_LOG_INFO, SPL_LOG_WARNING, SPL_LOG_ERROR, SPL_LOG_FATAL
    • Topic-based Logging:
      - spllogtopic(level, topic_index, fmt, ...)
    • Finalization (at the end of main):
      - spl_finish_log()
    • Samples