Class: Cline::Log

Inherits:
Schema
  • Object
show all
Defined in:
lib/cline/log.rb

Overview

Cline Log entry

Defined Under Namespace

Classes: ApiError, Error, ErrorCause, Properties

Instance Attribute Summary

Attributes inherited from Schema

#extra_attributes

Public API collapse

Methods inherited from Schema

#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash

Instance Method Details

#backend_modeString?

Returns Backend routing mode (e.g. "env-managed", "auto").

Returns:

  • (String, nil)

    Backend routing mode (e.g. "env-managed", "auto")



265
# File 'lib/cline/log.rb', line 265

attribute :backend_mode, :string

#componentString

Returns Component name (e.g. "main").

Returns:

  • (String)

    Component name (e.g. "main")



247
# File 'lib/cline/log.rb', line 247

attribute :component, :string

#cwdString?

Returns Current working directory.

Returns:

  • (String, nil)

    Current working directory



259
# File 'lib/cline/log.rb', line 259

attribute :cwd, :string

#errError?

Returns Error details for error logs.

Returns:

  • (Error, nil)

    Error details for error logs



286
# File 'lib/cline/log.rb', line 286

attribute :err, Error

#eventString?

Returns Event name for telemetry entries (e.g. "workspace.initialized").

Returns:

  • (String, nil)

    Event name for telemetry entries (e.g. "workspace.initialized")



274
# File 'lib/cline/log.rb', line 274

attribute :event, :string

#force_local_backendBoolean?

Returns Whether the local backend is forced.

Returns:

  • (Boolean, nil)

    Whether the local backend is forced



268
# File 'lib/cline/log.rb', line 268

attribute :force_local_backend, :boolean

#has_promptBoolean?

Returns Whether a prompt is present.

Returns:

  • (Boolean, nil)

    Whether a prompt is present



256
# File 'lib/cline/log.rb', line 256

attribute :has_prompt, :boolean

#hostnameString

Returns Hostname of the machine.

Returns:

  • (String)

    Hostname of the machine



241
# File 'lib/cline/log.rb', line 241

attribute :hostname, :string

#interactiveBoolean?

Returns Whether the session is interactive.

Returns:

  • (Boolean, nil)

    Whether the session is interactive



253
# File 'lib/cline/log.rb', line 253

attribute :interactive, :boolean

#levelInteger

Returns Log level number (e.g. 30 for info, 40 for warn).

Returns:

  • (Integer)

    Log level number (e.g. 30 for info, 40 for warn)



232
# File 'lib/cline/log.rb', line 232

attribute :level, :integer

#msgString

Returns Log message.

Returns:

  • (String)

    Log message



250
# File 'lib/cline/log.rb', line 250

attribute :msg, :string

#nameString

Returns Logger name (e.g. "cline.cli").

Returns:

  • (String)

    Logger name (e.g. "cline.cli")



244
# File 'lib/cline/log.rb', line 244

attribute :name, :string

#pidInteger

Returns Process ID.

Returns:

  • (Integer)

    Process ID



238
# File 'lib/cline/log.rb', line 238

attribute :pid, :integer

#propertiesProperties?

Returns Event-specific properties for telemetry entries.

Returns:

  • (Properties, nil)

    Event-specific properties for telemetry entries



277
# File 'lib/cline/log.rb', line 277

attribute :properties, Properties

#provider_idString?

Returns Provider identifier (e.g. "cline").

Returns:

  • (String, nil)

    Provider identifier (e.g. "cline")



283
# File 'lib/cline/log.rb', line 283

attribute :provider_id, :string

#reasonString?

Returns Reason for a fallback or decision.

Returns:

  • (String, nil)

    Reason for a fallback or decision



262
# File 'lib/cline/log.rb', line 262

attribute :reason, :string

#severityString?

Returns Severity level for error/warn logs (e.g. "error", "warn").

Returns:

  • (String, nil)

    Severity level for error/warn logs (e.g. "error", "warn")



280
# File 'lib/cline/log.rb', line 280

attribute :severity, :string

#telemetry_sinkString?

Returns Telemetry sink name (e.g. "TelemetryLoggerSink").

Returns:

  • (String, nil)

    Telemetry sink name (e.g. "TelemetryLoggerSink")



271
# File 'lib/cline/log.rb', line 271

attribute :telemetry_sink, :string

#timeString

Returns Timestamp in ISO 8601 format.

Returns:

  • (String)

    Timestamp in ISO 8601 format



235
# File 'lib/cline/log.rb', line 235

attribute :time, :string