You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
2.3 KiB
113 lines
2.3 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Logging
|
|
{
|
|
/// <summary>
|
|
/// A structure representing a log message
|
|
/// </summary>
|
|
public struct LogMessage
|
|
{
|
|
/// <summary>
|
|
/// A string representation of the log message category, encoded in UTF-8. Only valid during the life of the callback, so copy the string if you need it later.
|
|
/// </summary>
|
|
public Utf8String Category { get; set; }
|
|
|
|
/// <summary>
|
|
/// The log message, encoded in UTF-8. Only valid during the life of the callback, so copy the string if you need it later.
|
|
/// </summary>
|
|
public Utf8String Message { get; set; }
|
|
|
|
/// <summary>
|
|
/// The log level associated with the message
|
|
/// </summary>
|
|
public LogLevel Level { get; set; }
|
|
|
|
internal void Set(ref LogMessageInternal other)
|
|
{
|
|
Category = other.Category;
|
|
Message = other.Message;
|
|
Level = other.Level;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct LogMessageInternal : IGettable<LogMessage>, ISettable<LogMessage>, System.IDisposable
|
|
{
|
|
private System.IntPtr m_Category;
|
|
private System.IntPtr m_Message;
|
|
private LogLevel m_Level;
|
|
|
|
public Utf8String Category
|
|
{
|
|
get
|
|
{
|
|
Utf8String value;
|
|
Helper.Get(m_Category, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_Category);
|
|
}
|
|
}
|
|
|
|
public Utf8String Message
|
|
{
|
|
get
|
|
{
|
|
Utf8String value;
|
|
Helper.Get(m_Message, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_Message);
|
|
}
|
|
}
|
|
|
|
public LogLevel Level
|
|
{
|
|
get
|
|
{
|
|
return m_Level;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_Level = value;
|
|
}
|
|
}
|
|
|
|
public void Set(ref LogMessage other)
|
|
{
|
|
Category = other.Category;
|
|
Message = other.Message;
|
|
Level = other.Level;
|
|
}
|
|
|
|
public void Set(ref LogMessage? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
Category = other.Value.Category;
|
|
Message = other.Value.Message;
|
|
Level = other.Value.Level;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_Category);
|
|
Helper.Dispose(ref m_Message);
|
|
}
|
|
|
|
public void Get(out LogMessage output)
|
|
{
|
|
output = new LogMessage();
|
|
output.Set(ref this);
|
|
}
|
|
}
|
|
}
|