Skip to content

feat(logging): add syslog backend for daemon mode - #2500

Merged
oferchen merged 1 commit into
masterfrom
feat/syslog-backend
Feb 26, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/syslog-backend

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add Unix syslog backend to logging-sink crate using libc openlog/syslog FFI
  • Wire syslog facility and tag from rsyncd.conf parsed config into logging initialization
  • Facility string-to-constant mapping (daemon, auth, local0-local7, etc.)
  • Proper #[cfg(unix)] gating throughout
  • Defaults: facility="daemon", tag="oc-rsyncd"

Test plan

  • Facility string to constant mapping tests
  • Tag configuration tests
  • Syslog initialization with various configurations
  • Fallback to defaults when not configured
  • All workspace tests pass
  • clippy clean, fmt clean

@github-actions github-actions Bot added the enhancement New feature or request label Feb 26, 2026
@oferchen
oferchen force-pushed the feat/syslog-backend branch from 2db440e to d8e137c Compare February 26, 2026 17:27
Add Unix syslog backend to logging-sink crate using libc openlog/syslog
FFI. Wire syslog facility and tag from rsyncd.conf parsed config into
the logging initialization. Includes facility string-to-constant
mapping, proper cfg(unix) gating, and comprehensive tests.
@oferchen
oferchen force-pushed the feat/syslog-backend branch from d8e137c to 38dc684 Compare February 26, 2026 17:35
@oferchen
oferchen merged commit 9ef861e into master Feb 26, 2026
7 checks passed
@oferchen
oferchen deleted the feat/syslog-backend branch February 26, 2026 18:04
oferchen added a commit that referenced this pull request May 1, 2026
Add Unix syslog backend to logging-sink crate using libc openlog/syslog
FFI. Wire syslog facility and tag from rsyncd.conf parsed config into
the logging initialization. Includes facility string-to-constant
mapping, proper cfg(unix) gating, and comprehensive tests.
oferchen added a commit that referenced this pull request May 5, 2026
Add Unix syslog backend to logging-sink crate using libc openlog/syslog
FFI. Wire syslog facility and tag from rsyncd.conf parsed config into
the logging initialization. Includes facility string-to-constant
mapping, proper cfg(unix) gating, and comprehensive tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant