Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate support for logging for multiple log levels #300

Open
addityasingh opened this issue Jan 5, 2017 · 0 comments
Open

Integrate support for logging for multiple log levels #300

addityasingh opened this issue Jan 5, 2017 · 0 comments

Comments

@addityasingh
Copy link

As: A user of this package,
I would want: My server to have an option to log events

E.g. In below example we allow the server to log all the logs with info and error

var options = {
    key: fs.readFileSync(__dirname + '/keys/spdy-key.pem'),
    cert: fs.readFileSync(__dirname + '/keys/spdy-fullchain.pem'),
    debug: { 
        request: ['error', 'info'] 
    } 
}
var server = spdy.createServer(options, function(req, res) {
  res.writeHead(200);
  res.end('hello world!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant