Skip to content

wickenico/LogAnywhere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogAnywhere

A practical guide for building a log server using Express.js, ngrok and Swift. This setup allows devices without localhost access to send logs via an ngrok URL, making remote logging easy and accessible.

Getting Started

Starting the Log Server

  1. Clone the repository:

    git clone https://github.com/yourusername/LogAnywhere.git
    cd LogAnywhere
  2. Change to log server directory:

    cd log-server
  3. Install dependencies:

    npm install
  4. Start the server:

    node server.js

Setting Up ngrok

To expose your local server to the internet, you need to use ngrok. Follow the instructions in the ngrok README to set up ngrok and obtain a public URL.

Using the Swift App to Send Logs

  1. Open the Swift project:

    • Navigate to the DeviceInfoLogger directory.
    • Open SwiftApp.xcodeproj in Xcode.
  2. Configure the ngrok URL:

    • In the Swift project, locate the ContentView and where the server URL is set.
    • Replace the existing URL with your ngrok URL.
  3. Run the Swift app:

    • Build and run the app on your device or simulator.
    • Use the app interface to send logs to your server.

About

A practical guide for building a log server using Express.js, ngrok and Swift. This setup allows devices without localhost access to send logs via an ngrok URL, making remote logging easy and accessible.

Topics

Resources

License

Stars

Watchers

Forks

Contributors