Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ internal enum LogLevel : uint

internal static class NativeMethods
{
const string libpslnative = "libpsl-native";
/// <summary>
/// Write a message to the system logger, which in turn writes the message to the system console, log files, etc.
/// See man 3 syslog for more info.
Expand All @@ -365,13 +366,13 @@ internal static class NativeMethods
/// The OR of a priority and facility in the SysLogPriority enum indicating the the priority and facility of the log entry.
/// </param>
/// <param name="message">The message to put in the log entry.</param>
[DllImport("psl-native", CharSet = CharSet.Ansi, EntryPoint = "Native_SysLog")]
[DllImport(libpslnative, CharSet = CharSet.Ansi, EntryPoint = "Native_SysLog")]
internal static extern void SysLog(SysLogPriority priority, string message);

[DllImport("psl-native", CharSet = CharSet.Ansi, EntryPoint = "Native_OpenLog")]
[DllImport(libpslnative, CharSet = CharSet.Ansi, EntryPoint = "Native_OpenLog")]
internal static extern void OpenLog(IntPtr ident, SysLogPriority facility);

[DllImport("psl-native", EntryPoint = "Native_CloseLog")]
[DllImport(libpslnative, EntryPoint = "Native_CloseLog")]
internal static extern void CloseLog();

[Flags]
Expand Down