View the runtime output for a Tugboat Service

Arguments

  • service - Required
    The service for which to obtain the log.

Example

socket.emit('tugboat', 'services', 'output', args, callback);

Output

An array of log messages for the requested services.

[
    [
        {
            "level": "info",
            "message": "*** Running /etc/rc.local...",
            "service": "58dc8e4af339460001e5a97b"
        },
        {
            "level": "info",
            "message": "*** Booting runit daemon...",
            "service": "58dc8e4af339460001e5a97b"
        },
        {
            "level": "info",
            "message": "*** Runit started as PID 7",
            "service": "58dc8e4af339460001e5a97b"
        }
    ],
    [
        {
            "level": "info",
            "message": "*** Running /etc/rc.local...",
            "service": "58dc8e4af339460001e5a97a"
        },
        {
            "level": "info",
            "message": "*** Booting runit daemon...",
            "service": "58dc8e4af339460001e5a97a"
        },
        {
            "level": "info",
            "message": "*** Runit started as PID 6",
            "service": "58dc8e4af339460001e5a97a"
        }
    ]
]

Errors

  • 1017: No Service ID Provided
    The required service argument was not included in the request.

results matching ""

    No results matching ""