@beforeyoubid/logger-adapter
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,2 @@ | ||
import { ILogDNAParams } from '../types'; | ||
declare const consoleLogger: { | ||
@@ -2,0 +3,0 @@ init: (params?: ILogDNAParams) => void; |
@@ -0,3 +1,4 @@ | ||
import { ILogDNAParams } from '../types'; | ||
declare const getLogger: (params: ILogDNAParams) => any; | ||
declare const getDefaultConsoleLog: () => any; | ||
export { getLogger, getDefaultConsoleLog }; |
@@ -0,2 +1,3 @@ | ||
import { ILogDNAParams } from '../types'; | ||
declare const getLogger: (params: ILogDNAParams) => any; | ||
export { getLogger }; |
@@ -0,3 +1,4 @@ | ||
import { ILogDNAParams } from './types'; | ||
declare const sendToRemote: (logDNAKey: string, logDNAEnabled: string) => boolean; | ||
declare const getLogParams: () => ILogDNAParams; | ||
export { getLogParams, sendToRemote }; |
@@ -0,1 +1,2 @@ | ||
import { LambdaHandlerWithAsyncFunction, LambdaHandlerWithCallbackFunction } from './types'; | ||
/** | ||
@@ -2,0 +3,0 @@ * Handy function to check if we are sending to LogDNA |
{ | ||
"name": "@beforeyoubid/logger-adapter", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A platform logger module to send the log messages to LogDNA.", | ||
@@ -12,3 +12,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"lint": "eslint --max-warnings 0 '**/*.{ts,tsx,js,jsx}'", | ||
"lint": "eslint --max-warnings 0 '**/*.{ts,tsx,js,jsx}' && tsc --noEmit", | ||
"lint:fix": "eslint --fix --max-warnings 0 '**/*.{ts,tsx,js,jsx}'", | ||
@@ -15,0 +15,0 @@ "test": "yarn build && jest --config jestconfig.json", |
@@ -0,1 +1,3 @@ | ||
import { ILogDNAParams } from '../types'; | ||
import { getLogParams } from '../params'; | ||
@@ -2,0 +4,0 @@ import { getLogger } from './logger'; |
@@ -0,1 +1,2 @@ | ||
import { ILogDNAParams } from '../types'; | ||
const LogDNALogger = require('logdna'); | ||
@@ -2,0 +3,0 @@ const { flushAll } = require('../util'); |
@@ -0,1 +1,2 @@ | ||
import { ILogDNAParams } from '../types'; | ||
const logdnaWinston = require('logdna-winston'); | ||
@@ -2,0 +3,0 @@ const winston = require('winston'); |
@@ -0,1 +1,3 @@ | ||
import { ILogDNAParams } from './types'; | ||
const { | ||
@@ -2,0 +4,0 @@ LOG_LEVEL = 'info', |
@@ -0,1 +1,3 @@ | ||
import { LambdaHandlerWithAsyncFunction, LambdaHandlerWithCallbackFunction, CallbackFunction } from './types'; | ||
const LogDNALogger = require('logdna'); | ||
@@ -2,0 +4,0 @@ const debug = require('util').debuglog('logger-adapter'); |
28468
26
531