PINE LIBRARY
已更新 lib_log

Library "lib_log"
library for logging and debugging pine scripts
method init(this)
Namespace types: Logger
Parameters:
this (Logger)
method debug(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method info(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method success(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method warning(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method error(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method debug_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
method info_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
method success_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
method warning_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
method error_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
LogEntry
Fields:
timestamp (series__integer)
bar (series__integer)
level (series__integer)
message (series__string)
Logger
Fields:
min_level (series__integer)
color_logs (series__bool)
max_lines (series__integer)
line_idx (series__integer)
table_pos (series__string)
display (series__table)
log (array__|LogEntry|#OBJ)
library for logging and debugging pine scripts
method init(this)
Namespace types: Logger
Parameters:
this (Logger)
method debug(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method info(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method success(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method warning(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method error(this, message, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger to add the entry to
message (string): The Message to add
condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)
method debug_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
method info_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
method success_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
method warning_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
method error_bar(this, message, bar, y, y_offset, last_only, condition)
Namespace types: Logger
Parameters:
this (Logger): Logger object to check global min level condition
message (string): The string to print
bar (int): The bar to print the label at (default: bar_index)
y (float): The price value to print at (default: high)
y_offset (float): A price offset from y if you want to print multiple labels at the same spot
last_only (bool)
condition (bool)
LogEntry
Fields:
timestamp (series__integer)
bar (series__integer)
level (series__integer)
message (series__string)
Logger
Fields:
min_level (series__integer)
color_logs (series__bool)
max_lines (series__integer)
line_idx (series__integer)
table_pos (series__string)
display (series__table)
log (array__|LogEntry|#OBJ)
發行說明
v2發行說明
v3 embedded init method into log methodsRemoved:
method init(this)
發行說明
v4 separated LogDisplay from Logger, so multiple loggers can log to the tableAdded:
LogDisplay
Fields:
max_lines (series__integer)
table_pos (series__string)
_table (series__table)
log (array__|LogEntry|#OBJ)
發行說明
v5 performance optimization發行說明
v6 fixed state issuePine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。