Log messages to a node.js server for debugging
I made this while implementing background upload and download in iOS apps, in order to easily log messages when testing background completions. Suports both ios
and macos
.
It supports swift
only, it can't log from Objective-C. The log
method supports the same arguments as the print
method, so you can log as usual.
ip
module to work. It's used for printing the local ip when the server starts. In order to install it, run:npm install ip
Sources/NetworkLogger/NetworkLogger.swift
to you projectnode server.js
from the terminalimport NetworkLogger
NL.serverIP
to your desired IP address. The default is https://127.0.0.1:8080
. Make sure to include the port!NL.log("message")
to log a message to the serverlink |
Stars: 2 |
Last commit: 3 years ago |
Added MacOS support
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics