Function: emacsql-log

emacsql-log is a byte-compiled function defined in emacsql.el.

Signature

(emacsql-log &rest ARGS)

Implementations

(emacsql-log (CONNECTION emacsql-connection) MESSAGE) in `emacsql.el'.

Log MESSAGE into CONNECTION's log. MESSAGE should not have a newline on the end.

Source Code

;; Defined in ~/.emacs.d/elpa/emacsql-20261001.1544/emacsql.el
(cl-defmethod emacsql-log ((connection emacsql-connection) message)
  "Log MESSAGE into CONNECTION's log.
MESSAGE should not have a newline on the end."
  (let ((buffer (oref connection log-buffer)))
    (when buffer
      (unless (buffer-live-p buffer)
        (setq buffer (emacsql-enable-debugging connection)))
      (with-current-buffer buffer
        (goto-char (point-max))
        (princ (concat message "\n") buffer)))))