Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.text.TextUtils;
import android.util.Log;

public class Main {
    public static void log(String owner, String message) {
        log(owner, message, "");
    }

    public static void log(String owner, String message, String flag) {
        Log.d("LOG", "<message owner=\"" + owner + (!TextUtils.isEmpty(flag) ? " flag=\"" + flag + "\"" : "") + ">"
                + message + "</message>");
    }
}