bunyan-gcp-logging
Version:
Bunyan Transport for GCP (Google Cloud Platform) using Cloud Logging
15 lines (14 loc) • 542 B
TypeScript
/// <reference types="node" />
import Bunyan from 'bunyan';
import { Transform, TransformCallback, Writable } from 'stream';
import { Level } from './types';
export declare class GCPCloudLoggingTransformer extends Transform {
constructor();
_transform(chunk: any, encoding: string, callback: TransformCallback): void;
/**
* Format a bunyan record into a Stackdriver log entry.
*/
private formatEntry;
private formatHttpEntry;
}
export declare function createStream(level?: Level, out?: Writable): Bunyan.Stream;