本文整理汇总了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");
}
示例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");
}
示例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);
}
示例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");
}
}
示例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();
}
示例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);
}
*/
}