Skip to content

Use all your internet connections at once on Windows, macOS, Linux and Android: per-connection load balancing over Wi-Fi, Ethernet, mobile data and phone tethers

330 B
Raw Blame
// Package logx is net-merge's console/log-file output, shared by every package.
package logx

import (
	"fmt"
	"io"
	"os"
)

var out io.Writer = os.Stdout

// SetOutput sends all further output to w (the -log file).
func SetOutput(w io.Writer) { out = w }

func Printf(format string, a ...any) { fmt.Fprintf(out, format, a...) }