Search documentation of snmpkit

# SnmpKit.SnmpLib.MIB.Logger (snmpkit v1.3.17)

Structured logging for MIB compilation with proper log levels.

Provides detailed logging throughout the compilation process with structured metadata for debugging and monitoring.

# Summary

## Functions

log_batch_compilation_error(success_count, error_count)

Log batch compilation with errors.

log_batch_compilation_start(file_count)

Log start of batch compilation.

log_batch_compilation_success(success_count)

Log successful batch compilation.

log_batch_progress(completed, total)

Log batch compilation progress.

log_codegen(mib_name, objects_count, functions_generated)

Log code generation progress and results.

log_compilation_complete(mib_name, result)

Log compilation completion with results.

log_compilation_error(mib_name, errors)

Log compilation errors.

log_compilation_failed(file_path, errors)

Log compilation failure with error details.

log_compilation_start(file_path, opts)

Log the start of MIB compilation with context.

log_compilation_success(mib_name, output_path)

Log successful MIB compilation.

log_compilation_warning(mib_name, output_path, warnings)

Log compilation with warnings.

log_dependency_order(mib_order)

Log dependency resolution order.

log_import_resolution(mib_name, imported_mibs)

Log import resolution with dependency information.

log_imports_resolved(mib_name, resolved_count, total_count)

Log successful import resolution.

log_parse_progress(phase, count)

Log parsing progress with token/object counts.

log_performance(phase, metrics)

Log performance metrics.

log_tokenization(mib_name, tokens_count, lines_processed)

Log tokenization statistics.

log_vendor_quirk(mib_name, vendor, quirk_description)

Log vendor-specific quirk handling.

log_warning(message, context \\ %{})

Log warning with context.

# Functions

# log_batch_compilation_error(success_count, error_count)

    @spec log_batch_compilation_error(integer(), integer()) :: :ok

Log batch compilation with errors.

# log_batch_compilation_start(file_count)

    @spec log_batch_compilation_start(integer()) :: :ok

Log start of batch compilation.

# log_batch_compilation_success(success_count)

    @spec log_batch_compilation_success(integer()) :: :ok

Log successful batch compilation.

# log_batch_progress(completed, total)

    @spec log_batch_progress(integer(), integer()) :: :ok

Log batch compilation progress.

# log_codegen(mib_name, objects_count, functions_generated)

    @spec log_codegen(binary(), integer(), integer()) :: :ok

Log code generation progress and results.

# log_compilation_complete(mib_name, result)

    @spec log_compilation_complete(binary(), map()) :: :ok

Log compilation completion with results.

# log_compilation_error(mib_name, errors)

    @spec log_compilation_error(binary(), [term()]) :: :ok

Log compilation errors.

# log_compilation_failed(file_path, errors)

    @spec log_compilation_failed(Path.t(), [term()]) :: :ok

Log compilation failure with error details.

# log_compilation_start(file_path, opts)

    @spec log_compilation_start(
      Path.t(),
      keyword()
    ) :: :ok

Log the start of MIB compilation with context.

# log_compilation_success(mib_name, output_path)

    @spec log_compilation_success(binary(), Path.t()) :: :ok

Log successful MIB compilation.

# log_compilation_warning(mib_name, output_path, warnings)

    @spec log_compilation_warning(binary(), Path.t(), [term()]) :: :ok

Log compilation with warnings.

# log_dependency_order(mib_order)

    @spec log_dependency_order([binary()]) :: :ok

Log dependency resolution order.

# log_import_resolution(mib_name, imported_mibs)

    @spec log_import_resolution(binary(), [binary()]) :: :ok

Log import resolution with dependency information.

# log_imports_resolved(mib_name, resolved_count, total_count)

    @spec log_imports_resolved(binary(), integer(), integer()) :: :ok

Log successful import resolution.

# log_parse_progress(phase, count)

    @spec log_parse_progress(binary(), integer()) :: :ok

Log parsing progress with token/object counts.

# log_performance(phase, metrics)

    @spec log_performance(
      binary(),
      keyword()
    ) :: :ok

Log performance metrics.

# log_tokenization(mib_name, tokens_count, lines_processed)

    @spec log_tokenization(binary(), integer(), integer()) :: :ok

Log tokenization statistics.

# log_vendor_quirk(mib_name, vendor, quirk_description)

    @spec log_vendor_quirk(binary(), binary(), binary()) :: :ok

Log vendor-specific quirk handling.

# log_warning(message, context \\ %{})

    @spec log_warning(binary(), map()) :: :ok

Log warning with context.