file

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxifyJsonlLogFile = "proxify.jsonl"

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client type for file based logging

func New

func New(option *Options) (*Client, error)

New creates and returns a new client for file based logging

func (*Client) Save

func (c *Client) Save(data types.OutputData) error

Store writes the log to the file

type Options

type Options struct {
	// OutputFolder is the folder where the logs will be stored
	OutputFolder string `yaml:"output-folder"`
	OutputJsonl  bool   `yaml:"output-jsonl"`
}

Options required for file export

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL