embark/packages/core/logger
Michael Bradley, Jr 5b988ead7a refactor(@embark/core): refactor logger to provide correct origins
Also make a few more revisions:

Revise the "write logs" testing strategy such that it's not necessary for the
logger functions to take an optional callback.

Drop unused `tmp` package from `packages/core/logger` since it's not used in
the tests.

Strip colors before writing to the log file, use a two-space delimiter between
sections of each logged line in the log file, and collapse whitespace in the
message section of each line. These changes make the log file more amenable to
being processed with cli tools such as awk, cut, etc. It's also possible in a
text editor to replace `'  '` with `\t` and then load the file in a spreadsheet,
with each line-section in its own column.

Rearrange the sections of each logged line so that it's easier to read, and
only include the origin if the loglevel is debug or trace.
2020-02-03 20:47:23 -06:00
..
src refactor(@embark/core): refactor logger to provide correct origins 2020-02-03 20:47:23 -06:00
test refactor(@embark/core): refactor logger to provide correct origins 2020-02-03 20:47:23 -06:00
.npmrc move rest of the packages to their logical folders (#1886) 2019-09-07 15:45:25 -04:00
CHANGELOG.md chore(release): 5.1.1 2020-02-03 13:59:08 -06:00
README.md chore: update site urls 2020-01-28 12:07:17 -05:00
package.json refactor(@embark/core): refactor logger to provide correct origins 2020-02-03 20:47:23 -06:00
tsconfig.json test(@embark/core): add tests for logger module 2020-02-03 20:47:23 -06:00

README.md

embark-logger

Logger utilities for Embark

Visit framework.embarklabs.io to get started with Embark.