Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Get logjam logging working again #7

Open
4 tasks done
oubiwann opened this issue May 19, 2019 · 5 comments
Open
4 tasks done

Get logjam logging working again #7

oubiwann opened this issue May 19, 2019 · 5 comments

Comments

@oubiwann
Copy link
Contributor

oubiwann commented May 19, 2019

Though the logjam app gets started by YAWS, nothing is logged to the console. Need to find out why. Questions:

  • is the configuration defined in lfe.config getting loaded?
  • is it being properly read?
  • when YAWS starts, what's its cwd? (should be the Docker WORKDIR ...)
  • does logjam standalone still work?
@oubiwann
Copy link
Contributor Author

Confirmed an issue regarding that last bullet:

@oubiwann
Copy link
Contributor Author

Based on the latest comments in the logjam ticket, it seems that we might have a quickfix by starting lager explicitly in the YAWS config ...

@oubiwann
Copy link
Contributor Author

That didn't work, mostly because lager has to start first, before logjam, and I can't seem to figure out how to enforce order using multiple runmod declarations in the yaws config.

However, what did work, was setting the --erlarg '-s lager' flag when starting YAWS (after the -pa and before the --conf). So, logging is working(ish) again ... what's missing though is the ANSI colors and the specific format defined by logjam. That's being debugged in the linked ticket (see above).

@oubiwann
Copy link
Contributor Author

So it seems that for Erlang 17.5, 18.3, 19.3, and 20.3, logging works with logjam when using lager 2.x. With Erlang 21.3 and 22.0, lager 2.x is broken, or at least the way that logjam is using it is.

@oubiwann
Copy link
Contributor Author

oubiwann commented May 20, 2019

Updated the description with checkboxes. Basically, the solution here is manifold:

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

No branches or pull requests

1 participant