当前位置: 首页>>代码示例>>Java>>正文


Java LogUtils.w方法代码示例

本文整理汇总了Java中com.blankj.utilcode.util.LogUtils.w方法的典型用法代码示例。如果您正苦于以下问题:Java LogUtils.w方法的具体用法?Java LogUtils.w怎么用?Java LogUtils.w使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.blankj.utilcode.util.LogUtils的用法示例。


在下文中一共展示了LogUtils.w方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: run

import com.blankj.utilcode.util.LogUtils; //导入方法依赖的package包/类
@Override
public void run() {
    LogUtils.v("verbose");
    LogUtils.d("debug");
    LogUtils.i("info");
    LogUtils.w("warn");
    LogUtils.e("初始化成功");
    LogUtils.a("assert");
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:LogActivity.java

示例2: run

import com.blankj.utilcode.util.LogUtils; //导入方法依赖的package包/类
@Override
public void run() {
    LogUtils.v("verbose");
    LogUtils.d("debug");
    LogUtils.i("info");
    LogUtils.w("warn");
    LogUtils.e("error");
    LogUtils.a("assert");
}
 
开发者ID:hoangkien0705,项目名称:Android-UtilCode,代码行数:10,代码来源:LogActivity.java

示例3: onCreate

import com.blankj.utilcode.util.LogUtils; //导入方法依赖的package包/类
@Override
public void onCreate (Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    firewall = getRootActivity().getFirewall();
    if (firewall == null) {
        LogUtils.w(TAG, "Missing firewall");
        getActivity().finish();
        return;
    }
    mRuleList = new ArrayList<>();
    mAdapter = new RuleListAdapter(mRuleList);
}
 
开发者ID:TaRGroup,项目名称:IFWManager,代码行数:13,代码来源:IFWBlockListFragment.java

示例4: onCreate

import com.blankj.utilcode.util.LogUtils; //导入方法依赖的package包/类
@Override
public void onCreate (Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mRule = getArguments().getParcelable(EXTRA_RULE);
    if (mRule == null) {
        LogUtils.w(TAG, "Missing rule");
    }
}
 
开发者ID:TaRGroup,项目名称:IFWManager,代码行数:9,代码来源:RuleDetailFragment.java

示例5: onCreate

import com.blankj.utilcode.util.LogUtils; //导入方法依赖的package包/类
@Override
public void onCreate (Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    xml = (File)getIntent().getSerializableExtra(EXTRA_XML_FILE);
    if (xml == null) {
        LogUtils.w(TAG, "XML file missing");
        finish();
    }
    setContentView(R.layout.fragment_xml_detail_tab);
    mTab = (TabHost) findViewById(R.id.tab);
    getActionBar().setDisplayHomeAsUpEnabled(true);
    getActionBar().setTitle(xml.getName());
    new LoadRuleDetailTask().execute();
}
 
开发者ID:TaRGroup,项目名称:IFWManager,代码行数:15,代码来源:XmlDetailTabActivity.java

示例6: init

import com.blankj.utilcode.util.LogUtils; //导入方法依赖的package包/类
public void init () throws IOException {
    final String TAG = "init";
    LogUtils.i(TAG, "init workspace. ", id);
    // Step 1, Check and delete exists workspace
    if (workspaceDir.exists()) {
        LogUtils.i(TAG, "Workspace exists, deleting");
        if (!workspaceDir.delete()) {
            LogUtils.w(TAG, "Delete using root");
            ShellUtils.CommandResult result =
                    ShellUtils.execCmd("rm -rf " + workspaceDir.getAbsolutePath()
                            , true, true);
            if (result.result != 0) {
                LogUtils.e(TAG, "delete exists workspace", result.successMsg,
                        result.errorMsg, result.result);
                throw new IOException("Unable to delete exists workspace");
            } else {
                LogUtils.i(TAG, "Delete successful use root");
            }
        } else {
            LogUtils.i(TAG, "Delete successful use file.delete()");
        }
    }
    // Step 2, Make workspace dir
    LogUtils.i(TAG, "Make workspace dir");
    if (!workspaceDir.mkdirs()) {
        LogUtils.e(TAG, "Unable to make workspace dir");
        throw new IOException("Unable to make workspace dir");
    } else {
        LogUtils.i(TAG, "Make workspace dir successful");
    }
    // Step 3, Make rule dir
    ruleDir = new File(workspaceDir.getAbsolutePath() + "/rule/");
    if (!ruleDir.mkdir()) {
        LogUtils.e(TAG, "Unable to make rule dir");
        throw new IOException("Unable to make rule dir");
    } else {
        LogUtils.i(TAG, "Make rule dir successful");
    }
    LogUtils.i(TAG, "Workspace init successful.");
    /*
    File test = new File(workspace.getRuleDir() + "/1a.txt");
            try {
                if (!test.createNewFile()) throw new Exception("Return false");
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
     */
}
 
开发者ID:TaRGroup,项目名称:IFWManager,代码行数:49,代码来源:Workspace.java


注:本文中的com.blankj.utilcode.util.LogUtils.w方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。