6 namespace org { namespace ldk { namespace structs {
10 * A Record, unit of logging output with Metadata to enable filtering
11 * Module_path, file, line to inform on log's source
13 public class Record : CommonBase {
14 internal Record(object _dummy, long ptr) : base(ptr) { }
16 if (ptr != 0) { bindings.Record_free(ptr); }
20 * The verbosity level of the message.
22 public Level get_level() {
23 Level ret = bindings.Record_get_level(this.ptr);
29 * The verbosity level of the message.
31 public void set_level(Level val) {
32 bindings.Record_set_level(this.ptr, val);
40 public string get_args() {
41 long ret = bindings.Record_get_args(this.ptr);
43 if (ret >= 0 && ret <= 4096) { return null; }
44 string ret_conv = InternalUtils.decodeString(ret);
51 public void set_args(string val) {
52 bindings.Record_set_args(this.ptr, InternalUtils.encodeString(val));
58 * The module path of the message.
60 public string get_module_path() {
61 long ret = bindings.Record_get_module_path(this.ptr);
63 if (ret >= 0 && ret <= 4096) { return null; }
64 string ret_conv = InternalUtils.decodeString(ret);
69 * The module path of the message.
71 public void set_module_path(string val) {
72 bindings.Record_set_module_path(this.ptr, InternalUtils.encodeString(val));
78 * The source file containing the message.
80 public string get_file() {
81 long ret = bindings.Record_get_file(this.ptr);
83 if (ret >= 0 && ret <= 4096) { return null; }
84 string ret_conv = InternalUtils.decodeString(ret);
89 * The source file containing the message.
91 public void set_file(string val) {
92 bindings.Record_set_file(this.ptr, InternalUtils.encodeString(val));
98 * The line containing the message.
100 public int get_line() {
101 int ret = bindings.Record_get_line(this.ptr);
107 * The line containing the message.
109 public void set_line(int val) {
110 bindings.Record_set_line(this.ptr, val);
115 internal long clone_ptr() {
116 long ret = bindings.Record_clone_ptr(this.ptr);
122 * Creates a copy of the Record
124 public Record clone() {
125 long ret = bindings.Record_clone(this.ptr);
127 if (ret >= 0 && ret <= 4096) { return null; }
128 org.ldk.structs.Record ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Record(null, ret); }
129 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };