Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query erlang.log creation #517

Open
pankajsoni19 opened this issue Aug 21, 2019 · 6 comments
Open

Query erlang.log creation #517

pankajsoni19 opened this issue Aug 21, 2019 · 6 comments

Comments

@pankajsoni19
Copy link

I am using lager. This is my config.

There is an erlang.log file being created in the log folder which is essentially duplicating stuff that is in debug.log. Could you tell the reason for its creation?

I am passing this in vm.args file to erlang

-sasl sasl_error_logger false
{lager, [
        {log_root, "log" },
        {crash_log, "crash.log"},
        {handlers, [
            {lager_console_backend, [
                {level, debug},
                {formatter, lager_default_formatter},
                {formatter_config, [time," [",severity,"] ", message, "\n"]}
            ]},
            {lager_file_backend, [
                {file, "debug.log"},
                {level, debug},
                {formatter, lager_default_formatter},
                {formatter_config, [date, " ", time," [",severity,"] ",pid, " ", message, "\n"]},
                {size, 2097152}, {date, "$D0"}, {count, 5}
            ]}
        ]}
    ]}
@moooofly
Copy link

moooofly commented May 9, 2020

@pankajsoni19

meet the same issue recently, wonder how you fix it

tks

@pankajsoni19
Copy link
Author

Couldn't fix it. These are 5 files, and not much of a big deal so ignored it. I just wanted to know the reason, why this was happening.

@pankajsoni19 pankajsoni19 reopened this May 9, 2020
@moooofly
Copy link

Thanks for quick reply.

In my case, it is a real matter, because I find that there are quite many logs writen into this file

Also I find that my erlang application is not running normally, from the log output, I see some latency (somethings > 1s) happened now and then.

I can't find how to disable erlang.log

@Vagabond
Copy link
Member

That's not a lager file. Your release may be logging stdout to the file, in which case you may want to try disabling the console log handler.

@moooofly
Copy link

@Vagabond

Thanks for your tips, I will have a try.

@moooofly
Copy link

by https://erlang.org/doc/man/run_erl.html , find that erlang.log is created by run_erl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants