1
0

journald_nolinux.go 872 B

12345678910111213141516171819202122232425
  1. // Copyright (C) 2019-2022 Nicola Murino
  2. //
  3. // This program is free software: you can redistribute it and/or modify
  4. // it under the terms of the GNU Affero General Public License as published
  5. // by the Free Software Foundation, version 3.
  6. //
  7. // This program is distributed in the hope that it will be useful,
  8. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. // GNU Affero General Public License for more details.
  11. //
  12. // You should have received a copy of the GNU Affero General Public License
  13. // along with this program. If not, see <https://www.gnu.org/licenses/>.
  14. //go:build !linux
  15. // +build !linux
  16. package logger
  17. import "github.com/rs/zerolog"
  18. // InitJournalDLogger configures the logger to write to journald
  19. func InitJournalDLogger(level zerolog.Level) {
  20. InitStdErrLogger(level)
  21. }