Skip to content

LoggerAdapter.js

Peter J. Shin edited this page Feb 24, 2016 · 3 revisions
LoggerAdapter.js

Interface for allowing the underlying file storage to be changed

Adapter classes must implement the following functions:

  • info(string or array of string or object keys, function callback)
  • error(string or array of string or object keys, function callback)
  • query(options, function callback)

options:

  • level (optional) Level of logging you want to query for (info or error). Defaults to info.
  • from (optional) Start time for the search. Defaults to 1 week ago.
  • until (optional) End time for the search. Defaults to current time.
  • order (optional) Direction of results returned, either “asc” or “desc”. Defaults to “desc”.
  • size (optional) Number of rows returned by search. Defaults to 10

See FileLoggerAdapter.js for the default implementation


Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy