Skip to content

traceSet

Set the global subscriber called when libgit2 produces a tracing message.

Signature

ts
function traceSet(
  level: TraceLevel,
  callback: (level: TraceLevel, message: string) => void,
): void;

Parameters

  • levelrequired · TraceLevel

    Level to set tracing to

    Available tracing levels. When tracing is set to a particular level,
    callers will be provided tracing at the given level and all lower levels.

  • callbackrequired · (level: TraceLevel, message: string) => void

    Callback to call with trace data

Released under the MIT License.