GithubHelp home page GithubHelp logo

ihaiu.loger's Introduction

Loger

Definition

C# Log 用来适配 Console.WriteLine 和 Unity Debug

dll

用于Unity输出Log IhaiuLog_unity.dll

用于Console输出Log IhaiuLog.dll

Test Unity

编译 IhaiuLog_unity.dll 需要在Project Options -> Build -> Complier。 需要在Define Symbols添加UNITY

Test Console

Api

// Log

public static void Log (object message);

public static void LogTag (object tag, object message);

public static void Log (bool isopen, object tag, object message);


// LogFormat

public static void LogFormat (string format, params object[] args);

public static void LogTagFormat (object tag, string format, params object[] args);

public static void LogFormat (bool isopen, object tag, string format, params object[] args);

// 其他的 Warning,Error Api也是一样的。

bool isopen 参数的目的是控制某个模块的log是否输出

object tag 参数的目的是为了方便查找某个模块的Log过滤

你可以取实现自己的ILogHandle,比如把Log输出到文件。


我的博客 http://blog.ihaiu.com/

ihaiu.loger's People

Contributors

ihaiucom avatar zengfeng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.