method info(input, msg) Logs the input value with the 'info' log level. Namespace types: chart.point Parameters: input (chart.point): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method info(input, msg) Logs the input value with the 'info' log level. Namespace types: series float, simple float, input float, const float Parameters: input (float): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method info(input, msg) Logs the input value with the 'info' log level. Namespace types: series int, simple int, input int, const int Parameters: input (int): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method info(input, msg) Logs the input value with the 'info' log level. Namespace types: series bool, simple bool, input bool, const bool Parameters: input (bool): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method info(input, msg) Logs the input value with the 'info' log level. Namespace types: series string, simple string, input string, const string Parameters: input (string): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method info(input, msg) Logs the input value with the 'info' log level. Namespace types: series linefill Parameters: input (linefill): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method info(input, msg) Logs the input value with the 'info' log level. Namespace types: series line Parameters: input (line): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method info(input, msg) Logs the input value with the 'info' log level. Namespace types: series box Parameters: input (box): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: series label Parameters: input (label): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: array<chart.point> Parameters: input (array<chart.point>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: array<float> Parameters: input (array<float>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: array<int> Parameters: input (array<int>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: array<bool> Parameters: input (array<bool>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: array<string> Parameters: input (array<string>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: array<linefill> Parameters: input (array<linefill>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: array<line> Parameters: input (array<line>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input array with the 'info' log level. Namespace types: array<box> Parameters: input (array<box>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: array<label> Parameters: input (array<label>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: matrix<chart.point> Parameters: input (matrix<chart.point>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: matrix<float> Parameters: input (matrix<float>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: matrix<int> Parameters: input (matrix<int>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: matrix<bool> Parameters: input (matrix<bool>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: matrix<string> Parameters: input (matrix<string>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: matrix<linefill> Parameters: input (matrix<linefill>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: matrix<line> Parameters: input (matrix<line>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method info(input, msg) Logs the input matrix with the 'info' log level. Namespace types: matrix<box> Parameters: input (matrix<box>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input value with the 'warning' log level. Namespace types: chart.point Parameters: input (chart.point): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method warn(input, msg) Logs the input value with the 'warning' log level. Namespace types: series float, simple float, input float, const float Parameters: input (float): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method warn(input, msg) Logs the input value with the 'warning' log level. Namespace types: series int, simple int, input int, const int Parameters: input (int): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method warn(input, msg) Logs the input value with the 'warning' log level. Namespace types: series bool, simple bool, input bool, const bool Parameters: input (bool): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method warn(input, msg) Logs the input value with the 'warning' log level. Namespace types: series string, simple string, input string, const string Parameters: input (string): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method warn(input, msg) Logs the input value with the 'warning' log level. Namespace types: series linefill Parameters: input (linefill): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method warn(input, msg) Logs the input value with the 'warning' log level. Namespace types: series line Parameters: input (line): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method warn(input, msg) Logs the input value with the 'warning' log level. Namespace types: series box Parameters: input (box): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: series label Parameters: input (label): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: array<chart.point> Parameters: input (array<chart.point>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: array<float> Parameters: input (array<float>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: array<int> Parameters: input (array<int>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: array<bool> Parameters: input (array<bool>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: array<string> Parameters: input (array<string>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: array<linefill> Parameters: input (array<linefill>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: array<line> Parameters: input (array<line>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input array with the 'warning' log level. Namespace types: array<box> Parameters: input (array<box>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: array<label> Parameters: input (array<label>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: matrix<chart.point> Parameters: input (matrix<chart.point>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: matrix<float> Parameters: input (matrix<float>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: matrix<int> Parameters: input (matrix<int>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: matrix<bool> Parameters: input (matrix<bool>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: matrix<string> Parameters: input (matrix<string>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: matrix<linefill> Parameters: input (matrix<linefill>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: matrix<line> Parameters: input (matrix<line>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method warn(input, msg) Logs the input matrix with the 'warning' log level. Namespace types: matrix<box> Parameters: input (matrix<box>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input value with the 'error' log level. Namespace types: chart.point Parameters: input (chart.point): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method error(input, msg) Logs the input value with the 'error' log level. Namespace types: series float, simple float, input float, const float Parameters: input (float): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method error(input, msg) Logs the input value with the 'error' log level. Namespace types: series int, simple int, input int, const int Parameters: input (int): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method error(input, msg) Logs the input value with the 'error' log level. Namespace types: series bool, simple bool, input bool, const bool Parameters: input (bool): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method error(input, msg) Logs the input value with the 'error' log level. Namespace types: series string, simple string, input string, const string Parameters: input (string): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method error(input, msg) Logs the input value with the 'error' log level. Namespace types: series linefill Parameters: input (linefill): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method error(input, msg) Logs the input value with the 'error' log level. Namespace types: series line Parameters: input (line): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method error(input, msg) Logs the input value with the 'error' log level. Namespace types: series box Parameters: input (box): The input value to log. msg (string): The message to log. Default is an empty string. Returns: The input value.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: series label Parameters: input (label): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: array<chart.point> Parameters: input (array<chart.point>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: array<float> Parameters: input (array<float>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: array<int> Parameters: input (array<int>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: array<bool> Parameters: input (array<bool>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: array<string> Parameters: input (array<string>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: array<linefill> Parameters: input (array<linefill>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: array<line> Parameters: input (array<line>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input array with the 'error' log level. Namespace types: array<box> Parameters: input (array<box>): The input array to log. msg (string): The message to log. Default is an empty string. Returns: The input array.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: array<label> Parameters: input (array<label>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: matrix<chart.point> Parameters: input (matrix<chart.point>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: matrix<float> Parameters: input (matrix<float>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: matrix<int> Parameters: input (matrix<int>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: matrix<bool> Parameters: input (matrix<bool>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: matrix<string> Parameters: input (matrix<string>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: matrix<linefill> Parameters: input (matrix<linefill>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: matrix<line> Parameters: input (matrix<line>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method error(input, msg) Logs the input matrix with the 'error' log level. Namespace types: matrix<box> Parameters: input (matrix<box>): The input matrix to log. msg (string): The message to log. Default is an empty string. Returns: The input matrix.
method log(input, msg, level) Logs the input value with the specified log level. Namespace types: chart.point Parameters: input (chart.point): The input value to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input value.
method log(input, msg, level) Logs the input value with the specified log level. Namespace types: series float, simple float, input float, const float Parameters: input (float): The input value to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input value.
method log(input, msg, level) Logs the input value with the specified log level. Namespace types: series int, simple int, input int, const int Parameters: input (int): The input value to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input value.
method log(input, msg, level) Logs the input value with the specified log level. Namespace types: series bool, simple bool, input bool, const bool Parameters: input (bool): The input value to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input value.
method log(input, msg, level) Logs the input value with the specified log level. Namespace types: series string, simple string, input string, const string Parameters: input (string): The input value to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input value.
method log(input, msg, level) Logs the input value with the specified log level. Namespace types: series linefill Parameters: input (linefill): The input value to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input value.
method log(input, msg, level) Logs the input value with the specified log level. Namespace types: series line Parameters: input (line): The input value to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input value.
method log(input, msg, level) Logs the input value with the specified log level. Namespace types: series box Parameters: input (box): The input value to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input value.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: series label Parameters: input (label): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: array<chart.point> Parameters: input (array<chart.point>): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: array<float> Parameters: input (array<float>): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: array<int> Parameters: input (array<int>): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: array<bool> Parameters: input (array<bool>): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: array<string> Parameters: input (array<string>): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: array<linefill> Parameters: input (array<linefill>): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: array<line> Parameters: input (array<line>): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input array with the specified log level. Namespace types: array<box> Parameters: input (array<box>): The input array to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input array.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: array<label> Parameters: input (array<label>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: matrix<chart.point> Parameters: input (matrix<chart.point>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: matrix<float> Parameters: input (matrix<float>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: matrix<int> Parameters: input (matrix<int>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: matrix<bool> Parameters: input (matrix<bool>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: matrix<string> Parameters: input (matrix<string>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: matrix<linefill> Parameters: input (matrix<linefill>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: matrix<line> Parameters: input (matrix<line>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
method log(input, msg, level) Logs the input matrix with the specified log level. Namespace types: matrix<box> Parameters: input (matrix<box>): The input matrix to log. msg (string): The message to log. Default is an empty string. level (int): The log level (1 - info, 2 - warning, 3 - error). Default is 1. Returns: The input matrix.
This Library makes it so that you can simply add a method to the end of a variable or function etc.. and have it logged in the Pine Script log section.
Keeping Code clean and readable
.log() can be used to change the log level using the `level` param 1=info 2=warning 3=error
.warn(), .info(), .error() Can all be used on any variable other than UDTs and can add a string to be logged with the `msg` param
진정한 TradingView 정신에 따라, 저자는 이 파인 코드를 다른 파인 프로그래머들이 재사용할 수 있도록 오픈 소스 라이브러리로 공개했습니다. 저자에게 박수를 보냅니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈 소스 출판물에서 사용할 수 있지만, 이 코드를 출판물에서 재사용하는 것은 하우스 룰에 의해 관리됩니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.