Skip to content

Commit

Permalink
Move the logger into core.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Oct 13, 2024
1 parent 6339cd6 commit 9ddfa5a
Show file tree
Hide file tree
Showing 41 changed files with 40 additions and 43 deletions.
2 changes: 0 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"./lib/imagewriter/rawimagewriter.cc",
"./lib/layout.cc",
"./lib/ldbs.cc",
"./lib/logger.cc",
"./lib/logrenderer.cc",
"./lib/proto.cc",
"./lib/readerwriter.cc",
Expand Down Expand Up @@ -180,7 +179,6 @@
"lib/imagewriter/imagewriter.h": "./lib/imagewriter/imagewriter.h",
"lib/layout.h": "./lib/layout.h",
"lib/ldbs.h": "./lib/ldbs.h",
"lib/logger.h": "./lib/logger.h",
"lib/proto.h": "./lib/proto.h",
"lib/readerwriter.h": "./lib/readerwriter.h",
"lib/sector.h": "./lib/sector.h",
Expand Down
2 changes: 1 addition & 1 deletion lib/config.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "lib/core/globals.h"
#include "lib/config.h"
#include "lib/proto.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/core/utils.h"
#include <fstream>
#include <google/protobuf/text_format.h>
Expand Down
2 changes: 2 additions & 0 deletions lib/core/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"./csvreader.cc",
"./hexdump.cc",
"./utils.cc",
"./logger.cc",
],
hdrs={
"lib/core/bitmap.h": "./bitmap.h",
Expand All @@ -17,6 +18,7 @@
"lib/core/csvreader.h": "./csvreader.h",
"lib/core/globals.h": "./globals.h",
"lib/core/utils.h": "./utils.h",
"lib/core/logger.h": "./logger.h",
},
deps=[
"dep/agg",
Expand Down
5 changes: 1 addition & 4 deletions lib/logger.cc → lib/core/logger.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#include "lib/core/globals.h"
#include "lib/core/bytes.h"
#include "lib/fluxmap.h"
#include "lib/sector.h"
#include "lib/flux.h"
#include "lib/logger.h"
#include "lib/core/logger.h"

static bool indented = false;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "lib/flags.h"
#include "lib/proto.h"
#include "lib/core/utils.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/fluxsource/fluxsource.h"
#include "lib/imagereader/imagereader.h"
#include <google/protobuf/text_format.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/fluxsink/a2rfluxsink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "lib/fluxsink/fluxsink.h"
#include "lib/decoders/fluxmapreader.h"
#include "lib/fluxsink/fluxsink.pb.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/proto.h"
#include "lib/fluxmap.h"
#include "lib/layout.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/fluxsink/hardwarefluxsink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "lib/config.h"
#include "lib/flags.h"
#include "lib/fluxmap.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/proto.h"
#include "lib/usb/usb.h"
#include "lib/fluxsink/fluxsink.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/fluxsink/scpfluxsink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "lib/fluxmap.h"
#include "lib/layout.h"
#include "lib/scp.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <fstream>
#include <sys/stat.h>
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/fluxsource/dmkfluxsource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/fluxsource/fluxsource.h"
#include "lib/fluxsource/catweasel.h"
#include "lib/proto.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <fstream>
#include <filesystem>

Expand Down
2 changes: 1 addition & 1 deletion lib/fluxsource/hardwarefluxsource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "lib/config.h"
#include "lib/flags.h"
#include "lib/fluxmap.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/proto.h"
#include "lib/usb/usb.h"
#include "lib/fluxsource/fluxsource.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/fluxsource/scpfluxsource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "lib/fluxsource/fluxsource.h"
#include "lib/scp.h"
#include "lib/proto.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <fstream>

static int trackno(int strack)
Expand Down
2 changes: 1 addition & 1 deletion lib/globals.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "lib/core/globals.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <sys/time.h>
#include <stdarg.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/d64imagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "lib/sector.h"
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/proto.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/d88imagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/proto.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/dimimagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/sector.h"
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/proto.h"
#include "lib/config.pb.h"
#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/diskcopyimagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "lib/sector.h"
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/fdiimagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/proto.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/imagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "lib/image.h"
#include "lib/layout.h"
#include "lib/config.pb.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <algorithm>
#include <ctype.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/imdimagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/proto.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/layout.h"
#include "lib/config.pb.h"
#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/imgimagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/sector.h"
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include "lib/layout.pb.h"
#include "lib/proto.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/jv3imagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "lib/sector.h"
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/nfdimagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/proto.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/nsiimagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "lib/sector.h"
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/imagereader/imagereader.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagereader/td0imagereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagereader/imagereader.h"
#include "lib/image.h"
#include "lib/core/crc.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/d64imagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagewriter/imagewriter.h"
#include "lib/image.h"
#include "lib/ldbs.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/d88imagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "lib/image.h"
#include "lib/config.pb.h"
#include "lib/layout.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <algorithm>
#include <iostream>
#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/diskcopyimagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagewriter/imagewriter.h"
#include "lib/ldbs.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/imagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "lib/config.pb.h"
#include "lib/proto.h"
#include "lib/layout.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <iostream>
#include <fstream>

Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/imdimagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "lib/image.h"
#include "lib/config.pb.h"
#include "lib/layout.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <algorithm>
#include <iostream>
#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/imgimagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "lib/config.pb.h"
#include "lib/layout.h"
#include "lib/layout.pb.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include <algorithm>
#include <iostream>
#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/ldbsimagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagewriter/imagewriter.h"
#include "lib/ldbs.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/config.pb.h"
#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/nsiimagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagewriter/imagewriter.h"
#include "lib/decoders/decoders.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "arch/northstar/northstar.h"
#include "lib/imagewriter/imagewriter.pb.h"
#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion lib/imagewriter/rawimagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/imagewriter/imagewriter.h"
#include "lib/decoders/decoders.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "arch/northstar/northstar.h"
#include "lib/imagewriter/imagewriter.pb.h"
#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion lib/layout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "lib/config.h"
#include "lib/layout.h"
#include "lib/proto.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/fl2.h"

static unsigned getTrackStep()
Expand Down
2 changes: 1 addition & 1 deletion lib/logrenderer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "lib/fluxmap.h"
#include "lib/sector.h"
#include "lib/flux.h"
#include "lib/logger.h"
#include "lib/core/logger.h"

namespace
{
Expand Down
2 changes: 1 addition & 1 deletion lib/readerwriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "lib/imagewriter/imagewriter.h"
#include "lib/sector.h"
#include "lib/image.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/layout.h"
#include "lib/core/utils.h"
#include "lib/config.pb.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/usb/usb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "lib/core/bytes.h"
#include "lib/proto.h"
#include "usbfinder.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "applesauce.h"
#include "greaseweazle.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/vfs/amigaffs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "lib/config.pb.h"
#include "lib/proto.h"
#include "lib/layout.h"
#include "lib/logger.h"
#include "lib/core/logger.h"

#include "adflib.h"
#include "adf_blk.h"
Expand Down
2 changes: 1 addition & 1 deletion src/gui/main.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "lib/core/globals.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "gui.h"
#include "lib/core/utils.h"

Expand Down
2 changes: 1 addition & 1 deletion src/gui/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "lib/config.h"
#include "lib/proto.h"
#include "gui.h"
#include "lib/logger.h"
#include "lib/core/logger.h"
#include "lib/readerwriter.h"
#include "lib/fluxsource/fluxsource.h"
#include "lib/fluxsink/fluxsink.h"
Expand Down

0 comments on commit 9ddfa5a

Please sign in to comment.