moved log to own package

This commit is contained in:
Djeeberjr 2023-01-30 02:59:55 +01:00
parent 77d330a71d
commit a9eb569a02
10 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,7 @@
package kernel; package kernel;
import kernel.log.Log;
class Entrypoint { class Entrypoint {
public static function main() { public static function main() {
Init.initKernel(); Init.initKernel();

View File

@ -1,5 +1,6 @@
package kernel; package kernel;
import kernel.log.Log;
import lib.Pos; import lib.Pos;
import cc.HTTP.HTTPResponse; import cc.HTTP.HTTPResponse;
import lua.TableTools; import lua.TableTools;

View File

@ -1,4 +1,4 @@
package kernel; package kernel.log;
#if webconsole #if webconsole
import lib.Debug; import lib.Debug;

View File

@ -1,4 +1,4 @@
package kernel; package kernel.log;
enum LogLevel { enum LogLevel {
Info; Info;

View File

@ -1,6 +1,4 @@
package kernel; package kernel.log;
import kernel.LogLevel;
typedef LogLine = { typedef LogLine = {
level: LogLevel, level: LogLevel,

View File

@ -1,5 +1,6 @@
package kernel.net; package kernel.net;
import kernel.log.Log;
using tink.CoreApi; using tink.CoreApi;
/** /**

View File

@ -3,7 +3,7 @@ package kernel.net;
import haxe.ds.ReadOnlyArray; import haxe.ds.ReadOnlyArray;
import kernel.net.Package.NetworkID; import kernel.net.Package.NetworkID;
import kernel.peripherals.Peripherals.Peripheral; import kernel.peripherals.Peripherals.Peripheral;
import kernel.Log; import kernel.log.Log;
import kernel.Timer; import kernel.Timer;
import cc.OS; import cc.OS;

View File

@ -1,5 +1,6 @@
package kernel.net; package kernel.net;
import kernel.log.Log;
import kernel.peripherals.Peripherals.Peripheral; import kernel.peripherals.Peripherals.Peripheral;
import kernel.net.INetworkInterface; import kernel.net.INetworkInterface;
import kernel.net.Package.NetworkID; import kernel.net.Package.NetworkID;

View File

@ -1,5 +1,6 @@
package kernel.turtle; package kernel.turtle;
import kernel.log.Log;
import kernel.turtle.Types; import kernel.turtle.Types;
using tink.CoreApi; using tink.CoreApi;

View File

@ -1,9 +1,9 @@
package lib; package lib;
import kernel.log.Log;
import lua.NativeStringTools; import lua.NativeStringTools;
import lib.ui.Canvas; import lib.ui.Canvas;
import cc.ComputerCraft; import cc.ComputerCraft;
import kernel.Log;
#if webconsole #if webconsole
import cc.HTTP; import cc.HTTP;
import kernel.net.Net; import kernel.net.Net;