22cans / exsyslog Goto Github PK
View Code? Open in Web Editor NEWExSyslog is a Elixir Logger custom backend to syslog.
License: MIT License
ExSyslog is a Elixir Logger custom backend to syslog.
License: MIT License
When we use Logger.flush/0
it makes this logger crash because there is no handle_event/2
for :flush
. As described in the Logger docs:
In the case of the event
:flush
handlers should flush any pending data. This event is triggered byflush/0
.
I get this trying to start my app on my server. It works locally on a mac. config is below, any ideas?
=INFO REPORT==== 9-Nov-2015::11:11:51 ===
application: logger
exited: {{shutdown,
{failed_to_start_child,'Elixir.Logger.Watcher',
{'EXIT',
{{badmatch,
{error,
{undef,
[{'Elixir.ExSyslog',init,
[{'Elixir.ExSyslog',exsyslog}],
[]},
{'Elixir.GenEvent',do_handler,3,
[{file,"lib/gen_event.ex"},{line,1093}]},
{'Elixir.GenEvent',do_add_handler,5,
[{file,"lib/gen_event.ex"},{line,1050}]},
{'Elixir.GenEvent',handle_msg,5,
[{file,"lib/gen_event.ex"},{line,711}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,240}]}]}}},
[{'Elixir.Logger.Watcher','-start_link/3-fun-0-',2,
[{file,"lib/logger/watcher.ex"},{line,19}]},
{'Elixir.Enum','-reduce/3-lists^foldl/2-0-',3,
[{file,"lib/enum.ex"},{line,1387}]},
{'Elixir.Logger.Watcher',start_link,3,
[{file,"lib/logger/watcher.ex"},{line,18}]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,343}]},
{supervisor,start_children,3,
[{file,"supervisor.erl"},{line,326}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},{line,292}]},
{gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,240}]}]}}}},
{'Elixir.Logger.App',start,[normal,[]]}}
type: permanent
config :logger,
backends: [
{ExSyslog, :exsyslog},
]
config :logger, :exsyslog,
format: "$date $time [$level] $levelpad$node $metadata $message",
metadata: [:module, :line, :function],
ident: "Booking",
facility: :local0,
option: [:pid, :cons]
Hey @mr-bt
Looks like that you don't have time to maintain this repo and the package in hex. I'd be happy to maintain this package. Would you mind to grant me access to the repo and the package in hex?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.