logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattias Lasu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4NET-535) LocalSyslogAppender doesn’t work on macOS Sierra 10.12
Date Thu, 24 Nov 2016 10:50:58 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15692953#comment-15692953

Mattias Lasu commented on LOG4NET-535:

I expected to be able to write loggings to the syslog but now the syslog in Sierra have changed
to Unified Logging. I do not know if that should be a new appender or not.

Error description:
I get an exception when I try to call syslog(…) in method Append(…) in file LocalSyslogAppender.cs.
It fails because something goes wrong when calling syslog method and DllImport for libc.

I get this exception when trying to call syslog and dllimport:
2016-11-24 11:46:40.821 ERROR [1] Log4NetTester.Program - This is my test message

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) log4net.Appender.LocalSyslogAppender.syslog (int,string,string)
  at log4net.Appender.LocalSyslogAppender.Append (log4net.Core.LoggingEvent) [0x00028] in
  at log4net.Appender.AppenderSkeleton.DoAppend (log4net.Core.LoggingEvent) [0x00072] in /Users/mattiaslasu/development/log4net/src/Appender/AppenderSkeleton.cs:317
  at log4net.Util.AppenderAttachedImpl.AppendLoopOnAppenders (log4net.Core.LoggingEvent) [0x0005b]
in /Users/mattiaslasu/development/log4net/src/Util/AppenderAttachedImpl.cs:92
  at log4net.Repository.Hierarchy.Logger.CallAppenders (log4net.Core.LoggingEvent) [0x00049]
in /Users/mattiaslasu/development/log4net/src/Repository/Hierarchy/Logger.cs:576
  at log4net.Repository.Hierarchy.Logger.ForcedLog (System.Type,log4net.Core.Level,object,System.Exception)
[0x00018] in /Users/mattiaslasu/development/log4net/src/Repository/Hierarchy/Logger.cs:688
  at log4net.Repository.Hierarchy.Logger.Log (System.Type,log4net.Core.Level,object,System.Exception)
[0x0002b] in /Users/mattiaslasu/development/log4net/src/Repository/Hierarchy/Logger.cs:428
  at log4net.Core.LogImpl.Error (object) [0x00014] in /Users/mattiaslasu/development/log4net/src/Core/LogImpl.cs:764
  at Log4NetTester.Program.Main (string[]) [0x00046] in /Users/mattiaslasu/development/log4net/Log4NetTester/Program.cs:68
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr)
<IL 0x00051, 0x001d2>

> LocalSyslogAppender doesn’t work on macOS Sierra 10.12
> ------------------------------------------------------
>                 Key: LOG4NET-535
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-535
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.15, 2.0.6
>         Environment: macOS Sierra osx 10.12 and 10.12.1
> HEAD detached at origin/trunk
> HEAD is now at db6839f... update release notes for 2.0.6
>            Reporter: Mattias Lasu
> LocalSyslogAppender doesn’t work on macOS Sierra 10.12
> New logging in macOS Sierra osx 10.12, unified logging:
> "Unified logging is available in iOS 10.0 and later, macOS 10.12 and later, tvOS 10.0
and later, and watchOS 3.0 and later, and supersedes ASL (Apple System Logger) and the Syslog
APIs. Historically, log messages were written to specific locations on disk, such as /etc/system.log.
The unified logging system stores messages in memory and in a data store, rather than writing
to text-based log files."
> https://developer.apple.com/reference/os/1891852-logging

This message was sent by Atlassian JIRA

View raw message