Coder Social home page Coder Social logo

logdna / log-better Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nimbinatus/log-better

0.0 2.0 0.0 656 KB

Workshop resources for Log Better

Home Page: https://logbetter.nimbinatus.com

License: MIT License

Python 30.70% HTML 2.59% CSS 5.17% JavaScript 57.76% Dockerfile 3.78%

log-better's Introduction

Log Better: Workshop Resources

Coverage Status

This repo holds the source code and sample playground for the Log Better workshop. A list of where I've presented this workshop can be found further down in this README.

Running locally

If you don't want to use the main playground at https://logbetter.nimbinatus.com (or if it's not up, which is always possible), you can run this system on your local machine. Right now, all you need is Python 3, Node, and a command line.

  1. Clone or download the repo.
  2. Set up and activate a Python virtual environment.
  3. Go into the api directory.
  4. Run pip install -r requirements.txt.
  5. Go into the web directory.
  6. Run your favorite package install command for Node. I use Yarn. I also set up a Node virtual environment because I like my systems clean (nvm, for the curious). It's up to you.
  7. Go to the api.
  8. Run python -m api.
  9. In a new terminal, go into the web directory.
  10. Run npm start
  11. The start script will open your browser to the right page automatically. Open the developer tools and try entering in a line of logs.

You can also use the API standalone, if you would prefer.

Local testing

To run local tests, simply run python tests/test_api.py from the root of the repo on your local machine.

Nitty Gritty: Conference Details

Abstract

Sure, we’re told actionable, parsable logs are important. But what does that mean? How has that guidance changed? Experiment with different log formats, see how machines parse logs, and discuss best practices for logging. After all, a good log helps the next person, and that might even be you.

Description

Logging is deceptively simple. You import a library, pass strings to it, and BAM you have logs. However, do you know how to write machine-parsable logs? Do you know all of the different log levels and why you need them? What does current logging best practices look like? Logging is an underutilized tool in the developer’s toolbox, and it is often misunderstood as just another unnecessary debugging tool. In reality, logging is a boon to the people who will be working on a system later down the line, and making fantastic logs really is a team sport.

For the hands-on portions of this workshop, we’ll learn and practice writing good logs, and we’ll view our practice logs. We’ll see how different logs appear in a parsing system, and we’ll experiment with different formats. Finally, we’ll see how to translate those best practices into code with a basic hello-world Python application. You just need a laptop, a terminal of some sort (anything from basic terminal to Powershell is fine), and the ability to connect to the conference wifi.

Conference List

DeveloperWeek Austin 2019

log-better's People

Contributors

nimbinatus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.