Skip to content

Logging with context #1071

@jmatthewsr-ms

Description

@jmatthewsr-ms

Any plans to add some context to all log statements, where possible?

Examples:

  • for illustration purposes only, realize that prefix log statements would break users who parse the current logs. would need to add to end or flag next-gen logging somehow.

Socket.prototype.disconnect = function () {
if (!this.disconnected) {
this.log.info("'{socketId:' + this.id + '}'",'booting client');

Transport.prototype.onForcedDisconnect = function () {
if (!this.disconnected) {
this.log.info("'{socketId:' + this.socket.id + '}'"'transport end by forced client disconnection');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions