import StoreLogger from './StoreLogger' ; export default class StoreLoggerSplunk extends StoreLogger { public saving ( id ) { this . SplunkLogger ( `Saving message ${ id }.` ) ; } public saved ( id ) { this . SplunkLogger ( `Saved message ${ id }.` ) ; } public readingFilestore ( id ) { this . SplunkLogger ( `Reading message ${ id } from FileStore.` ) ; } public readingCache ( id ) { this . SplunkLogger ( `Reading message ${ id } from StoreCache.` ) ; } public didNotFind ( id ) { this . SplunkLogger ( `No message ${ id } found.` ) ; } public missingFromCache ( id ) { this . SplunkLogger ( `Message ${ id } missing from cache.` ) ; } public returning ( id ) { this . SplunkLogger ( `Returning message ${ id }.` ) ; } public errorSaving ( id ) { this . SplunkLogger ( `Error saving message ${ id }.` ) ; } private SplunkLogger ( log ) { console . log ( "Logged to Splunk: " , log ) ; } }