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;
import kernel.log.Log;
class Entrypoint {
public static function main() {
Init.initKernel();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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