summaryrefslogtreecommitdiffstats
path: root/src/logger.rs
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-08-03 17:26:22 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-08-20 07:10:19 -0400
commitbb110c1ebeeda452046830b3991f705f5759da92 (patch)
treecc2b0112a3ca9b8d05cf1e953553907d71564082 /src/logger.rs
parentd9ca5293569efb255608d3c601107bcfe7060f15 (diff)
ripgrep: migrate to libripgrep
This commit does the work to delete the old `grep` crate and effectively rewrite most of ripgrep core to use the new libripgrep crates. The new `grep` crate is now a facade that collects the various crates that make up libripgrep. The most complex part of ripgrep core is now arguably the translation between command line parameters and the library options, which is ultimately where we want to be.
Diffstat (limited to 'src/logger.rs')
-rw-r--r--src/logger.rs25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/logger.rs b/src/logger.rs
index 8bd7e09c..f12f0b19 100644
--- a/src/logger.rs
+++ b/src/logger.rs
@@ -34,19 +34,30 @@ impl Log for Logger {
match (record.file(), record.line()) {
(Some(file), Some(line)) => {
eprintln!(
- "{}/{}/{}:{}: {}",
- record.level(), record.target(),
- file, line, record.args());
+ "{}|{}|{}:{}: {}",
+ record.level(),
+ record.target(),
+ file,
+ line,
+ record.args()
+ );
}
(Some(file), None) => {
eprintln!(
- "{}/{}/{}: {}",
- record.level(), record.target(), file, record.args());
+ "{}|{}|{}: {}",
+ record.level(),
+ record.target(),
+ file,
+ record.args()
+ );
}
_ => {
eprintln!(
- "{}/{}: {}",
- record.level(), record.target(), record.args());
+ "{}|{}: {}",
+ record.level(),
+ record.target(),
+ record.args()
+ );
}
}
}