连击 天
fork: star:
在看ranch user guide的过程中,发现实现protocol handler需要使用特殊的gen_server形式,也就是enter_loop函数调用,事例代码如下: -module(echo_protocol). -behaviour(ranch_protocol). ...
这一节分析一条日志记录的完整流程 假设源代码中要打印日志,有这么一行 lager:error([{request, RequestID},{vhost, Vhost}], "Permission denied ~s", [User]) 经过上一节的分析,那么经过...
erlang中声明新类型,使用type和opaque关键字 type的使用 -module(module1). -export_type([my_tup2/0]). -type my_tup2() :: {my_tup2, atom(), atom()}. -module(module2). -export([ma...
lager_app 应用行为模式实现 Handlers = [{ lager_console_backend, info}, { lager_file_backend, [ {"log/error.log", error, 10485760, "", 5}, {"log/console.log", info, 10485760, "",...
Concurrency This module provides some limited support for concurrent access. All updates to single objects are guaranteed to be both atomic and isolated. This means that an upda...
使用 lager 的时候,在编译应用的时候,需要加入选项 {parse_transform, lager_transform} erlc 会在编译你的项目源代码的时候,把生成的 abstract format forms 交给 lager_transform 模块的...
没有更多内容
加载失败,请刷新页面
没有更多内容
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复