Question: For comparison, android has a kick-ass logger, where in one line I can do

```
Log.d("TAG", "Something important is happening here.");

```

Using eclipse on app engine, I have been doing

```
private static final Logger LOG = Logger.getLogger(MyClass.class.getName());
…
//inside method
LOG.info("I don’t want to have two lines");

```

I am moving to android studio, is there a way to do something as cool as the one on android? I imagine I might have to add a dependency to Gradle. Any ideas how I might do this?

Answer: 
In read\_serial, you can try replacing &buffer with buffer in the call to ReadFile. Name of a character array should be a pointer to the first element of the array.
What i would do is i would frame every message that goes from and to the Galileo board in a simple and useful protocol. For example i would use STX and ETX to frame and send messages from the Windows 7 via serial to the board, use ACK NAK to acknowledge the received packet and use SYN for signalling end of execution of a line on Galileo.
With the above framing you can construct receive and send functions where you can wait for specific characters (ETX,STX,SYN,ACK,etc) and exit once you have a full frame or an control character.