Constructor
new Logs(baseURLopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
baseURL |
string |
<optional> |
Protocol, domain, and port for the service. |
Classes
Methods
end()
follow(plugins, level, callback)
- Description:
Add a handler for following logs. Note that each invocation of this method opens a connection to the server and holds it open. Web browsers limit the number of connections to a single domain. Avoid using this method more than once per client.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
plugins |
Array.<string> | Follow logs for the provided Plugin IDs. |
level |
string | number | Log Level. |
callback |
function | Invoked with two arguments. The first argument is an Error object (if an error occurred) or null. The second argument is an log object. |