Coder Social home page Coder Social logo

loggrad's Introduction

LogGrad

Quantitative Assessment of Log Quality in Large-Scale Software.


Introduction

LogGrad is a light weight log-quality assessment tool, which is based on Clang. Given a set of projects, LogGrad can automatically rank them by log quality. The basic idea of ranking is that to what extent the given project misses logs. The missing logs are classified into 3 types, including project-specific logs, intra-domain important logs and inter-domain important logs.

Usage

Compile
  • Change directory to Clang tools directory.
cd path/to/llvm-source-tree/tools/clang/tools
  • Download source code.
git clone https://github.com/ZhouyangJia/LogGrad.git
  • Add add_subdirectory(LogGrad) to CMakeList.txt.
echo "add_subdirectory(LogGrad)" >> CMakeLists.txt
ls path/to/llvm-build/Release/bin/clang-loggrad
Analyze log information
cd test/
tar zxvf bftpd-3.2.tar
cd bftpd/
./configure
bear make
  • Generate compiled_files.def, This file has all names of compiled source files.
../../script/extract_command.pl compile_commands.json
  • Generate function_rule_model.out. Each line includes a 3-tuple, namely function name, called time and logged time.
cat compiled_files.def | xargs clang-loggrad -log-grade
  • Rename the output file. Other output files are in script/results.
mv function_rule_model.out bftpd.out
Assessment

Each output file represents one project followed by a domain name.

cd ../../script/
python loggrad.py results/httpd.out httpd results/nginx.out httpd results/lighttpd.out httpd results/mongrel2.out httpd results/mysql.out database results/postgresql.out database results/berkeleydb.out database results/monetdb.out database

loggrad's People

Contributors

zhouyangjia 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.