// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.Log
{
///
/// Log entry.
///
[System.Runtime.Serialization.DataContractAttribute]
public class LogEntry : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// Log entry source.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (true))]
public string Source
{
get;
set;
}
///
/// Log entry severity.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("level"), IsRequired = (true))]
public string Level
{
get;
set;
}
///
/// Logged text.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))]
public string Text
{
get;
set;
}
///
/// Timestamp when this entry was added.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))]
public long Timestamp
{
get;
set;
}
///
/// URL of the resource if known.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (false))]
public string Url
{
get;
set;
}
///
/// Line number in the resource.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (false))]
public int? LineNumber
{
get;
set;
}
///
/// JavaScript stack trace.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))]
public CefSharp.DevTools.Runtime.StackTrace StackTrace
{
get;
set;
}
///
/// Identifier of the network request associated with this entry.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("networkRequestId"), IsRequired = (false))]
public string NetworkRequestId
{
get;
set;
}
///
/// Identifier of the worker associated with this entry.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("workerId"), IsRequired = (false))]
public string WorkerId
{
get;
set;
}
///
/// Call arguments.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("args"), IsRequired = (false))]
public System.Collections.Generic.IList Args
{
get;
set;
}
}
}