+/** An implementation of Logger */
export interface LoggerInterface {
+ /**Logs the `Record`
+ */
log(record: Record): void;
}
held: Logger;
}
+/**
+ * A trait encapsulating the operations required of a logger
+ */
export class Logger extends CommonBase {
/* @internal */
public bindings_instance?: bindings.LDKLogger;
this.bindings_instance = null;
}
- static new_impl(arg: LoggerInterface): Logger {
+ /** Creates a new instance of Logger from a given implementation */
+ public static new_impl(arg: LoggerInterface): Logger {
const impl_holder: LDKLoggerHolder = new LDKLoggerHolder();
let structImplementation = {
log (record: number): void {
impl_holder.held.bindings_instance = structImplementation;
return impl_holder.held;
}
+
}