
Product
Redesigned Repositories Page: A Faster Way to Prioritize Security Risk
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
node-cloudfoundry-log-reader
Advanced tools
Simple library for read logs applications in Cloud Foundry (Pivotal) instances
$ npm install node-cloudfoundry-log-reader
var cf = require('node-cloudfoundry-log-reader');
var params = {
username: 'username',
password: 'password',
appGuid: 'guid',
endpoints: {
loggregator: 'loggregator.cf-domain.com',
login: 'login.cf-domain.com',
port: 4443, // port need only for ws (tail log) default value 4443
ssl: true
}
};
/**
* Example: cf logs app-name --recent
*/
cf.recent(params, function (error, data) {
console.log(cf.clean(data));
});
/**
* Example: cf logs app-name
*/
cf.tail(params, function (socket) {
socket.on('open', function () {
console.log('connected');
});
socket.on('close', function () {
console.log('disconnected');
});
socket.on('message', function (data) {
console.log(cf.clean(data.toString()));
});
socket.on('error', function () {
console.log(arguments);
});
});
FAQs
Simple library for read logs applications in Cloud Foundry (Pivotal) instances
The npm package node-cloudfoundry-log-reader receives a total of 0 weekly downloads. As such, node-cloudfoundry-log-reader popularity was classified as not popular.
We found that node-cloudfoundry-log-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Multiple deserialization flaws in PyTorch Lightning could allow remote code execution when loading untrusted model files, affecting versions up to 2.4.0.
Security News
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.