Git Product home page Git Product logo

pancake-log-1's Introduction

LogCake

TODO: Add description

Installation

If available in Hex, the package can be installed by adding pancake_log to your list of dependencies in mix.exs:

def deps do
  [
    {:pancake_log, "~> 0.1.0"}
  ]
end

Then add your configuration:

config :pancake_log,
  log_final_storage: [:logstash],
  enable_sentry_mode: true
config :pancake_log, :sentry_mode,
  logstash_index: index_name (config tên index trên logstash tuỳ từng app)

Params(:pancake_log):

Name Required Default Notes
log_final_storage true n/a Must be list. Allow value(:s3, :logstash)
enable_sentry_mode false false Sentry mode will log all info of app you config (follow params sentry_mode to get more information)

Params(:pancake_log -> :sentry_mode) (Require if you use sentry mode)

Name Required Default Notes
:level false :error Level info you wanna log (ex: :debug, :warn, :error, ...)
:metadata false :node Crash record will include this value (must be keyword list) (default we add node name for you)
:logstash_index true n/a Index name of logstash

Params(:pancake_log -> :s3) (Require if you use s3 storage)

Name Required Default Notes
storage_path true n/a This is area to buffer your log before upload to s3
adapter_port true n/a This is port our server collect log data

Params(:pancake_log -> :logstash)

Name Required Default Notes
use_logcake_logstash false true We have logstash adapter in lib (set to false if you wanna use your logstash)
ip false '10.1.8.196' Logstash IP (default is Logstash of Pancake)
port false 5046 Logstash Port (default is Logstash of Pancake)
mf_logstash false n/a Require if you wanna use your logstash. It's module and function of your logstash

Log to file using log/1 function:

LogCake.log("hello world", a: 1, b: "2")

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/pancake_log.

pancake-log-1's People

Contributors

taonhanvat avatar goose97 avatar

Stargazers

 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.