Skip to content

Golang library for Hypnolog (visualization logging tool for any language)

License

Notifications You must be signed in to change notification settings

SimonLdj/hypnolog-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HypnoLog Go (Golang) Library

What is HypnoLog?

Get Hypnotized While Logging

HypnoLog allows you to fast and easily visualize your application data/objects while debugging. From any environment, in any language. Forget about those black text-based console debug-printing back from the 70's.

See HypnoLog main repo.

About HypnoLog-golang Library

Logging using HypnoLog means sending you data as JSON HTTP request to HypnoLog server. This library wraps all of those into simple easy to use functions.

Installation

TODO: describe how to get the go library

If you haven't used HypnoLog before, setup HypnoLog server on your machine:

npm install -g hypnolog-server

Note: you will need Node.js installed on your machine first.

Usage

  1. Start HypnoLog server:
    hypnolog-server
  2. View output: open http://127.0.0.1:7000/client.html in your browser.
  3. Import HypnoLog into your file:
  4. Log:
    // Log a string
    hypnolog.Create().Str("Hello HypnoLog from Go!").Log()
    
    // log list of numbers as a graph (plot)
    // TODO
    
    // log any struct
    hypnolog.Create().Set(map[string]string{"some-key":"some-value"}).Log()

For more examples, see tests.

Read how to view the log and more about HypnoLog in HypnoLog main repo page.

About

Golang library for Hypnolog (visualization logging tool for any language)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages