To lodge first meant to pitch a camp
The verb logeren (to stay overnight) began in an army camp, pension in a payment and hostel with the youth hostel. On the words for sleeping away from home and how their meanings shifted.

In 1285 someone had pitched his camp on the east side. That is how the Dutch verb logeren first appears on paper, in the spelling of the time: ‘lach ande oest side ghelogiert’. A night in a hotel is called logies, and whoever stays the night, logeert. That is not a word of guests but of soldiers: the Middle Dutch logieren meant ‘to stay, to spend the night, to set up a temporary residence’.
The word comes from French. There loger first meant ‘to set up a camp’, around 1138, and later also ‘to stay temporarily’, in 1280. It is derived from loge, in the Old French sense ‘simple shelter for the night’. In Middle Dutch logieren still refers to staying in a temporarily built, and therefore simple, place. That nuance disappears already in the fifteenth century. With logeren only the stay is then temporary, and not so much the place set up for it. In 1462 it appears in ‘logeren in die herberghen’, being a guest temporarily in an inn. In 1578 it also appears with an object, in ‘te logeren oft herbergen eenighe persoonen’: to give several people shelter. The Old French pronunciation of the g, roughly like dzh, lives on in English lodge.

The noun logies has the same soldier's root. Between 1370 and 1387 it appears in a text about setting up an army camp, and between 1468 and 1497 in the sense ‘temporary stay for the people’. As logies it can be found in Dutch since 1659, borrowed from Old French logis, ‘temporary army camp’. The logé is much younger: that word is on paper in 1840 and was at first used only for guests of private persons, not for hotel guests. More general and older words for the one who sleeps are gast, logeergast, reiziger and slaper (guest, houseguest, traveller and sleeper). And whoever is ‘in de aap gelogeerd’ is in trouble; that expression perhaps goes back to the name of a particular inn.
Pension comes from a quite different corner: the purse. The French pension meant in 1606 a house where you get board and lodging for payment, an extension of the meaning ‘money for board and lodging, rent’ from 1607. That specific meaning arose from ‘payment, reward’, in the fourteenth century. Post-classical Latin already had pensio, meaning ‘rent’ besides ‘payment’, and rented apartments were consequently also called pensione. In Dutch pension is a boarding school in 1805 and in 1889 ‘a pension for ladies’. The word is the same as pensioen (pension, retirement income).
Hostel is the youngest word of the set and the oldest at the same time. In Dutch it appears in 1958, about a ‘hostel’ for music students. It is borrowed from English hostel, ‘youth hostel’, from 1931: a shortening of youth hostel from 1929, the loan translation introduced at the time of the German Jugendherberge. In English hostel also had the now obsolete, more general meaning ‘lodging for travellers’, from the fourteenth century, borrowed from Old French hostel. That is the same word as hotel.
Back to the jeugdherberg (youth hostel), because it has had the most quarrels over its name. The first Dutch youth hostel opened in 1929. Word and thing were borrowed from German, where over two decades more than two thousand Jugendherbergen had sprung up. In 1934 the magazine Onze Taal wrote that many members had objections: ‘There hangs about this word a certain smell of drinks and tobacco.’ The magazine asked its readers for a more childlike word. Kampeerhuis (camping house), perhaps, or trekkershuis (hikers' house)? An encyclopedia from 1931 reassured: herberg is not meant in the sense of pub, because smoking and alcohol are strictly forbidden and kept out.
The debate was not quickly over. Already in 1934 the Netherlands had 67 youth hostels, writes Sanders in Woorden met een verhaal, twice as many as when the book appeared in 2004. Around 1950 they were so popular that ‘wild youth hostels’ appeared: private persons and farmers nailed a sign ‘jeugdherberg’ on a stable or barn, where you could sleep for a few dimes. A Catholic encyclopedia from 1952 thought that so dangerous that it wanted the word protected by law against abuse. In early January 2003 the national youth hostel organisation itself banned the word. It was too twee, it felt: jeugdherberg had something of large dormitories, shared sanitary facilities and chores. Linguistically, writes Sanders, it is rather ironic that jeugdherberg is now found too stuffy, because at first it was found too wild.
Kort
Logeren: Middle Dutch logieren, 1285, ‘to pitch a camp’
Logies: in Dutch since 1659, from Old French logis
Pension: French, ‘board and lodging for payment’, 1606
Hostel: in Dutch in 1958, from English, related to hotel
Jeugdherberg: first Dutch one in 1929, the word banned by the organisation in 2003