Class: Cline::Log
Overview
Cline Log entry
Defined Under Namespace
Classes: ApiError, Error, ErrorCause, Properties
Instance Attribute Summary
Attributes inherited from Schema
Public API collapse
-
#backend_mode ⇒ String?
Backend routing mode (e.g. "env-managed", "auto").
-
#component ⇒ String
Component name (e.g. "main").
-
#cwd ⇒ String?
Current working directory.
-
#err ⇒ Error?
Error details for error logs.
-
#event ⇒ String?
Event name for telemetry entries (e.g. "workspace.initialized").
-
#force_local_backend ⇒ Boolean?
Whether the local backend is forced.
-
#has_prompt ⇒ Boolean?
Whether a prompt is present.
-
#hostname ⇒ String
Hostname of the machine.
-
#interactive ⇒ Boolean?
Whether the session is interactive.
-
#level ⇒ Integer
Log level number (e.g. 30 for info, 40 for warn).
-
#msg ⇒ String
Log message.
-
#name ⇒ String
Logger name (e.g. "cline.cli").
-
#pid ⇒ Integer
Process ID.
-
#properties ⇒ Properties?
Event-specific properties for telemetry entries.
-
#provider_id ⇒ String?
Provider identifier (e.g. "cline").
-
#reason ⇒ String?
Reason for a fallback or decision.
-
#severity ⇒ String?
Severity level for error/warn logs (e.g. "error", "warn").
-
#telemetry_sink ⇒ String?
Telemetry sink name (e.g. "TelemetryLoggerSink").
-
#time ⇒ String
Timestamp in ISO 8601 format.
Methods inherited from Schema
#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash
Instance Method Details
#backend_mode ⇒ String?
Returns Backend routing mode (e.g. "env-managed", "auto").
265 |
# File 'lib/cline/log.rb', line 265 attribute :backend_mode, :string |
#component ⇒ String
Returns Component name (e.g. "main").
247 |
# File 'lib/cline/log.rb', line 247 attribute :component, :string |
#cwd ⇒ String?
Returns Current working directory.
259 |
# File 'lib/cline/log.rb', line 259 attribute :cwd, :string |
#err ⇒ Error?
Returns Error details for error logs.
286 |
# File 'lib/cline/log.rb', line 286 attribute :err, Error |
#event ⇒ String?
Returns Event name for telemetry entries (e.g. "workspace.initialized").
274 |
# File 'lib/cline/log.rb', line 274 attribute :event, :string |
#force_local_backend ⇒ Boolean?
Returns Whether the local backend is forced.
268 |
# File 'lib/cline/log.rb', line 268 attribute :force_local_backend, :boolean |
#has_prompt ⇒ Boolean?
Returns Whether a prompt is present.
256 |
# File 'lib/cline/log.rb', line 256 attribute :has_prompt, :boolean |
#hostname ⇒ String
Returns Hostname of the machine.
241 |
# File 'lib/cline/log.rb', line 241 attribute :hostname, :string |
#interactive ⇒ Boolean?
Returns Whether the session is interactive.
253 |
# File 'lib/cline/log.rb', line 253 attribute :interactive, :boolean |
#level ⇒ Integer
Returns Log level number (e.g. 30 for info, 40 for warn).
232 |
# File 'lib/cline/log.rb', line 232 attribute :level, :integer |
#msg ⇒ String
Returns Log message.
250 |
# File 'lib/cline/log.rb', line 250 attribute :msg, :string |
#name ⇒ String
Returns Logger name (e.g. "cline.cli").
244 |
# File 'lib/cline/log.rb', line 244 attribute :name, :string |
#pid ⇒ Integer
Returns Process ID.
238 |
# File 'lib/cline/log.rb', line 238 attribute :pid, :integer |
#properties ⇒ Properties?
Returns Event-specific properties for telemetry entries.
277 |
# File 'lib/cline/log.rb', line 277 attribute :properties, Properties |
#provider_id ⇒ String?
Returns Provider identifier (e.g. "cline").
283 |
# File 'lib/cline/log.rb', line 283 attribute :provider_id, :string |
#reason ⇒ String?
Returns Reason for a fallback or decision.
262 |
# File 'lib/cline/log.rb', line 262 attribute :reason, :string |
#severity ⇒ String?
Returns Severity level for error/warn logs (e.g. "error", "warn").
280 |
# File 'lib/cline/log.rb', line 280 attribute :severity, :string |
#telemetry_sink ⇒ String?
Returns Telemetry sink name (e.g. "TelemetryLoggerSink").
271 |
# File 'lib/cline/log.rb', line 271 attribute :telemetry_sink, :string |
#time ⇒ String
Returns Timestamp in ISO 8601 format.
235 |
# File 'lib/cline/log.rb', line 235 attribute :time, :string |